diff options
author | Spencer T Brody <spencer@mongodb.com> | 2015-09-03 17:24:35 -0400 |
---|---|---|
committer | Spencer T Brody <spencer@mongodb.com> | 2015-09-04 11:07:37 -0400 |
commit | bbab56051a643a51b40fe53e5ecd936b374bf135 (patch) | |
tree | 5614111393d2c6dce8c8ace3b816e457745cf085 /src/mongo/db/s/sharding_state.cpp | |
parent | 7a59ba6da674462e7f86a3a7111d58b0721a4138 (diff) | |
download | mongo-bbab56051a643a51b40fe53e5ecd936b374bf135.tar.gz |
SERVER-20270 SERVER-19608 Fix race condition around updating ShardRegistry on CSRS membership changes
Diffstat (limited to 'src/mongo/db/s/sharding_state.cpp')
-rw-r--r-- | src/mongo/db/s/sharding_state.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mongo/db/s/sharding_state.cpp b/src/mongo/db/s/sharding_state.cpp index 8f9a7519743..b3bf5a7ce85 100644 --- a/src/mongo/db/s/sharding_state.cpp +++ b/src/mongo/db/s/sharding_state.cpp @@ -157,7 +157,7 @@ void ShardingState::initialize(OperationContext* txn, const string& server) { } ShardedConnectionInfo::addHook(); - ReplicaSetMonitor::setConfigChangeHook(&ConfigServer::configReplicaSetChange); + ReplicaSetMonitor::setSynchronousConfigChangeHook(&ConfigServer::configReplicaSetChange); ConnectionString configServerCS = uassertStatusOK(ConnectionString::parse(server)); uassertStatusOK(initializeGlobalShardingState(txn, configServerCS, false)); |