fix: the primary location in a forced recovery much have the same dcid as the master

This commit is contained in:
Evan Tschannen 2019-02-18 15:25:14 -08:00
parent 641fb659f9
commit 1ac91fa277
1 changed files with 1 additions and 1 deletions

View File

@ -1281,7 +1281,7 @@ struct TagPartitionedLogSystem : ILogSystem, ReferenceCounted<TagPartitionedLogS
int8_t primaryLocality = -1;
for(auto& coreSet : modifiedState.tLogs) {
if(coreSet.isLocal && coreSet.locality >= 0) {
if(coreSet.isLocal && coreSet.locality >= 0 && coreSet.tLogLocalities[0].dcId() != locality.dcId()) {
primaryLocality = coreSet.locality;
break;
}