diff options
author | Kaloian Manassiev <kaloian.manassiev@mongodb.com> | 2018-02-08 16:53:03 -0500 |
---|---|---|
committer | Kaloian Manassiev <kaloian.manassiev@mongodb.com> | 2018-02-12 14:06:14 -0500 |
commit | e6fef1f93c6daf736b69f40cc4c0c92b4df75b4b (patch) | |
tree | 47913fbeaba3b9a2c58530b264ac4132e5d27460 /src/mongo/db/s/migration_destination_manager.h | |
parent | fe1587bfc8e3507eb044721a0fa98c456659b629 (diff) | |
download | mongo-e6fef1f93c6daf736b69f40cc4c0c92b4df75b4b.tar.gz |
SERVER-29908 Consolidate some sharding libraries to help break dependency cycles
Diffstat (limited to 'src/mongo/db/s/migration_destination_manager.h')
-rw-r--r-- | src/mongo/db/s/migration_destination_manager.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/mongo/db/s/migration_destination_manager.h b/src/mongo/db/s/migration_destination_manager.h index cc59483d699..bcbfb65facb 100644 --- a/src/mongo/db/s/migration_destination_manager.h +++ b/src/mongo/db/s/migration_destination_manager.h @@ -69,6 +69,13 @@ public: MigrationDestinationManager(); ~MigrationDestinationManager(); + /** + * Returns the singleton instance of the migration destination manager. + * + * TODO (SERVER-25333): This should become per-collection instance instead of singleton. + */ + static MigrationDestinationManager* get(OperationContext* opCtx); + State getState() const; void setState(State newState); |