summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorVesselina Ratcheva <vesselina.ratcheva@10gen.com>2020-06-04 15:16:43 -0400
committerEvergreen Agent <no-reply@evergreen.mongodb.com>2020-06-04 21:59:51 +0000
commit30f5448e95114d344e6acffa92856536885e35dd (patch)
tree96b2dfde35d2af2fe0d56c83e5f041760900dae8 /src
parenteeca550092d9601d433e04c3aa71b8e1ff9795f7 (diff)
downloadmongo-30f5448e95114d344e6acffa92856536885e35dd.tar.gz
SERVER-48582 Change StaleConfig error code in 'newlyAdded' field removal reconfig
Diffstat (limited to 'src')
-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: "