summaryrefslogtreecommitdiff
path: root/src/mongo/db/repl/replication_coordinator_impl.cpp
diff options
context:
space:
mode:
authorKevin Pulo <kevin.pulo@mongodb.com>2020-03-10 18:32:52 +1100
committerEvergreen Agent <no-reply@evergreen.mongodb.com>2020-03-24 04:44:49 +0000
commitc1f3e2fca052039dd5ce1cea2fa4c3d4565cfe6c (patch)
tree55d15503d4c5ad8ea092e972885d6d4976c7a88b /src/mongo/db/repl/replication_coordinator_impl.cpp
parentef75364ada70eaf4a096ed07adfeb3175abd719b (diff)
downloadmongo-c1f3e2fca052039dd5ce1cea2fa4c3d4565cfe6c.tar.gz
SERVER-46201 add ReplicaSetAwareService, convert Balancer to use it
Diffstat (limited to 'src/mongo/db/repl/replication_coordinator_impl.cpp')
-rw-r--r--src/mongo/db/repl/replication_coordinator_impl.cpp6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/mongo/db/repl/replication_coordinator_impl.cpp b/src/mongo/db/repl/replication_coordinator_impl.cpp
index 459e29bd99a..f0eb982f285 100644
--- a/src/mongo/db/repl/replication_coordinator_impl.cpp
+++ b/src/mongo/db/repl/replication_coordinator_impl.cpp
@@ -88,6 +88,7 @@
#include "mongo/db/repl/transaction_oplog_application.h"
#include "mongo/db/repl/update_position_args.h"
#include "mongo/db/repl/vote_requester.h"
+#include "mongo/db/replica_set_aware_service.h"
#include "mongo/db/server_options.h"
#include "mongo/db/storage/storage_options.h"
#include "mongo/db/write_concern.h"
@@ -3845,10 +3846,7 @@ void ReplicationCoordinatorImpl::_performPostMemberStateUpdateAction(
_externalState->closeConnections();
/* FALLTHROUGH */
case kActionSteppedDown:
- // This code must be safe to run on node rollback and node removal!
- _externalState->shardingOnStepDownHook();
- _externalState->stopNoopWriter();
- _externalState->stopAsyncUpdatesOfAndClearOplogTruncateAfterPoint();
+ _externalState->onStepDownHook();
break;
case kActionStartSingleNodeElection:
// In protocol version 1, single node replset will run an election instead of