diff options
author | Vesselina Ratcheva <vesselina.ratcheva@10gen.com> | 2020-06-04 15:16:43 -0400 |
---|---|---|
committer | Evergreen Agent <no-reply@evergreen.mongodb.com> | 2020-06-04 21:59:51 +0000 |
commit | 30f5448e95114d344e6acffa92856536885e35dd (patch) | |
tree | 96b2dfde35d2af2fe0d56c83e5f041760900dae8 /src | |
parent | eeca550092d9601d433e04c3aa71b8e1ff9795f7 (diff) | |
download | mongo-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.cpp | 2 |
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: " |