diff --git a/fdbserver/masterserver.actor.cpp b/fdbserver/masterserver.actor.cpp index 3cc03f89b0..a0dcce6cd6 100644 --- a/fdbserver/masterserver.actor.cpp +++ b/fdbserver/masterserver.actor.cpp @@ -1274,8 +1274,10 @@ ACTOR Future masterCore( Reference self ) { for(auto& dc : self->primaryDcId) { tr.set(recoveryCommitRequest.arena, tLogDatacentersKeyFor(dc), StringRef()); } - for(auto& dc : self->remoteDcIds) { - tr.set(recoveryCommitRequest.arena, tLogDatacentersKeyFor(dc), StringRef()); + if(self->configuration.usableRegions > 1) { + for(auto& dc : self->remoteDcIds) { + tr.set(recoveryCommitRequest.arena, tLogDatacentersKeyFor(dc), StringRef()); + } } applyMetadataMutations(self->dbgid, recoveryCommitRequest.arena, tr.mutations.slice(mmApplied, tr.mutations.size()), self->txnStateStore, NULL, NULL);