summaryrefslogtreecommitdiff
path: root/src/mongo/db/repl/replication_coordinator_impl.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/mongo/db/repl/replication_coordinator_impl.cpp')
-rw-r--r--src/mongo/db/repl/replication_coordinator_impl.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mongo/db/repl/replication_coordinator_impl.cpp b/src/mongo/db/repl/replication_coordinator_impl.cpp
index acbb071382d..0d715d6a0e5 100644
--- a/src/mongo/db/repl/replication_coordinator_impl.cpp
+++ b/src/mongo/db/repl/replication_coordinator_impl.cpp
@@ -1189,7 +1189,7 @@ void ReplicationCoordinatorImpl::signalDrainComplete(OperationContext* opCtx,
"Automatic reconfig to increment the config term on stepup failed",
"error"_attr = reconfigStatus);
// If the node stepped down after we released the lock, we can just return.
- if (ErrorCodes::isNotMasterError(reconfigStatus.code())) {
+ if (ErrorCodes::isNotPrimaryError(reconfigStatus.code())) {
return;
}
// Writing this new config with a new term is somewhat "best effort", and if we get