diff options
author | Matthew Saltz <matthew.saltz@mongodb.com> | 2018-07-03 16:45:16 -0400 |
---|---|---|
committer | Matthew Saltz <matthew.saltz@mongodb.com> | 2018-07-25 16:56:46 -0400 |
commit | a80d2ae80e0c55f86284b3a5215bfd396b0d4a49 (patch) | |
tree | 749834a2a07baad6ddb928710c5b491014abaf02 /src/mongo/db/s/chunk_splitter.cpp | |
parent | e7c2cbf88bc07549d634613049358214dbbaac4b (diff) | |
download | mongo-a80d2ae80e0c55f86284b3a5215bfd396b0d4a49.tar.gz |
SERVER-31586 Use PeriodicRunner to refresh balancer configuration periodically
Diffstat (limited to 'src/mongo/db/s/chunk_splitter.cpp')
-rw-r--r-- | src/mongo/db/s/chunk_splitter.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mongo/db/s/chunk_splitter.cpp b/src/mongo/db/s/chunk_splitter.cpp index a0fd9c60337..cc48a524eee 100644 --- a/src/mongo/db/s/chunk_splitter.cpp +++ b/src/mongo/db/s/chunk_splitter.cpp @@ -232,7 +232,7 @@ ChunkSplitter& ChunkSplitter::get(ServiceContext* serviceContext) { return getChunkSplitter(serviceContext); } -void ChunkSplitter::setReplicaSetMode(bool isPrimary) { +void ChunkSplitter::onShardingInitialization(bool isPrimary) { stdx::lock_guard<stdx::mutex> scopedLock(_mutex); _isPrimary = isPrimary; } |