diff options
author | Gregory Wlodarek <gregory.wlodarek@mongodb.com> | 2019-02-08 14:39:12 -0500 |
---|---|---|
committer | Gregory Wlodarek <gregory.wlodarek@mongodb.com> | 2019-02-13 14:09:27 -0500 |
commit | 9f6ab44d229a40b65e9b0316fb3d72f494504768 (patch) | |
tree | b8bca70ffab059bd1a468c0d4ac12b97839b88d2 /src/mongo/db/repl/replication_coordinator_impl_heartbeat.cpp | |
parent | 3a8290eef5c5934462b5cb84c9daded1b3073ad9 (diff) | |
download | mongo-9f6ab44d229a40b65e9b0316fb3d72f494504768.tar.gz |
SERVER-38977 Notify the IndexBuildsCoordinator of any changes to the replica set config
Diffstat (limited to 'src/mongo/db/repl/replication_coordinator_impl_heartbeat.cpp')
-rw-r--r-- | src/mongo/db/repl/replication_coordinator_impl_heartbeat.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/mongo/db/repl/replication_coordinator_impl_heartbeat.cpp b/src/mongo/db/repl/replication_coordinator_impl_heartbeat.cpp index ece31e5739d..48a476609f1 100644 --- a/src/mongo/db/repl/replication_coordinator_impl_heartbeat.cpp +++ b/src/mongo/db/repl/replication_coordinator_impl_heartbeat.cpp @@ -40,6 +40,7 @@ #include "mongo/base/status.h" #include "mongo/db/concurrency/replication_state_transition_lock_guard.h" +#include "mongo/db/index_builds_coordinator.h" #include "mongo/db/kill_sessions_local.h" #include "mongo/db/logical_clock.h" #include "mongo/db/logical_time_validator.h" @@ -628,6 +629,9 @@ void ReplicationCoordinatorImpl::_heartbeatReconfigFinish( _setCurrentRSConfig(lk, opCtx.get(), newConfig, myIndexValue); lk.unlock(); _performPostMemberStateUpdateAction(action); + + // Inform the index builds coordinator of the replica set reconfig. + IndexBuildsCoordinator::get(opCtx.get())->onReplicaSetReconfig(); } void ReplicationCoordinatorImpl::_trackHeartbeatHandle_inlock( |