diff options
author | Kaloian Manassiev <kaloian.manassiev@mongodb.com> | 2018-03-05 14:59:08 -0500 |
---|---|---|
committer | Kaloian Manassiev <kaloian.manassiev@mongodb.com> | 2018-03-05 18:15:00 -0500 |
commit | c207a0ced18bba58a8ad1b08df85b1e0a0b136f9 (patch) | |
tree | 74f0715f2143f115e45bdc3f226be4f7dd249f46 /src/mongo/db/s/sharding_state.h | |
parent | c7524de57dc3a9d829d8bce43e219c9e011094c5 (diff) | |
download | mongo-c207a0ced18bba58a8ad1b08df85b1e0a0b136f9.tar.gz |
SERVER-29908 Move ChunkSplitter to the `sharding_runtime_d` library
Diffstat (limited to 'src/mongo/db/s/sharding_state.h')
-rw-r--r-- | src/mongo/db/s/sharding_state.h | 18 |
1 files changed, 0 insertions, 18 deletions
diff --git a/src/mongo/db/s/sharding_state.h b/src/mongo/db/s/sharding_state.h index cf5cc2945f9..a21e8e2d489 100644 --- a/src/mongo/db/s/sharding_state.h +++ b/src/mongo/db/s/sharding_state.h @@ -36,7 +36,6 @@ #include "mongo/db/namespace_string.h" #include "mongo/db/s/active_migrations_registry.h" #include "mongo/db/s/active_move_primaries_registry.h" -#include "mongo/db/s/chunk_splitter.h" #include "mongo/db/s/collection_sharding_state.h" #include "mongo/stdx/functional.h" #include "mongo/stdx/memory.h" @@ -128,20 +127,6 @@ public: */ Status updateConfigServerOpTimeFromMetadata(OperationContext* opCtx); - ChunkSplitter* getChunkSplitter(); - - /** - * Should be invoked when the shard server primary enters the 'PRIMARY' state. - * Sets up the ChunkSplitter to begin accepting split requests. - */ - void initiateChunkSplitter(); - - /** - * Should be invoked when this node which is currently serving as a 'PRIMARY' steps down. - * Sets the state of the ChunkSplitter so that it will no longer accept split requests. - */ - void interruptChunkSplitter(); - void appendInfo(OperationContext* opCtx, BSONObjBuilder& b); bool needCollectionMetadata(OperationContext* opCtx, const std::string& ns); @@ -269,9 +254,6 @@ private: // Tracks the active move primary operations running on this shard ActiveMovePrimariesRegistry _activeMovePrimariesRegistry; - // Handles asynchronous auto-splitting of chunks - std::unique_ptr<ChunkSplitter> _chunkSplitter; - // Protects state below stdx::mutex _mutex; |