summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWilliam Schultz <william.schultz@mongodb.com>2020-03-24 16:51:48 -0400
committerEvergreen Agent <no-reply@evergreen.mongodb.com>2020-03-24 21:38:41 +0000
commitc2b282a1ba5f4f87d59456912073398a504281dc (patch)
tree3e3cb6df2d6c6973c5a54ba0a62d0b7a1fdca456
parente21e03697dae0dbb6cd63ddada41ca4801d6bb79 (diff)
downloadmongo-c2b282a1ba5f4f87d59456912073398a504281dc.tar.gz
SERVER-46897 Clear replication node seed list whenever we install a new config that we are not a member of
-rw-r--r--src/mongo/db/repl/replication_coordinator_impl.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/mongo/db/repl/replication_coordinator_impl.cpp b/src/mongo/db/repl/replication_coordinator_impl.cpp
index f14a2e8301d..f30b1148b59 100644
--- a/src/mongo/db/repl/replication_coordinator_impl.cpp
+++ b/src/mongo/db/repl/replication_coordinator_impl.cpp
@@ -4227,6 +4227,9 @@ ReplicationCoordinatorImpl::_setCurrentRSConfig(WithLock lk,
// Clear the horizon promise mappings of removed nodes so they can be recreated if the node
// later rejoins the set.
_horizonToPromiseMap.clear();
+
+ // If we're still REMOVED, clear the seedList.
+ _seedList.clear();
}
_updateLastCommittedOpTimeAndWallTime(lk);