summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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 ca26cf04965..b437181304e 100644
--- a/src/mongo/db/repl/replication_coordinator_impl.cpp
+++ b/src/mongo/db/repl/replication_coordinator_impl.cpp
@@ -3720,7 +3720,7 @@ void ReplicationCoordinatorImpl::_reconfigToRemoveNewlyAddedField(
// only want to do an automatic reconfig where the base config is the one that specified
// this memberId.
if (oldConfig.getConfigVersionAndTerm() != versionAndTerm) {
- return Status(ErrorCodes::StaleConfig,
+ return Status(ErrorCodes::NewReplicaSetConfigurationIncompatible,
str::stream()
<< "Current config is no longer consistent with heartbeat "
"data. Current config version: "