diff options
author | jannaerin <golden.janna@gmail.com> | 2018-02-05 13:10:20 -0500 |
---|---|---|
committer | jannaerin <golden.janna@gmail.com> | 2018-03-12 11:08:24 -0400 |
commit | 4d816381bef06ed82019089bf91cf2003d59d16f (patch) | |
tree | c263351f74b24a649b7d388d58b8eb3f3f21f3ab /src/mongo/db/s/migration_destination_manager.h | |
parent | e54d2ce84bb9f1285228e75b63b7ef4e555601e6 (diff) | |
download | mongo-4d816381bef06ed82019089bf91cf2003d59d16f.tar.gz |
SERVER-32886 Remove unnecessary sleeps during chunk migration
Diffstat (limited to 'src/mongo/db/s/migration_destination_manager.h')
-rw-r--r-- | src/mongo/db/s/migration_destination_manager.h | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/mongo/db/s/migration_destination_manager.h b/src/mongo/db/s/migration_destination_manager.h index 0b16202d55e..4bd269f37fd 100644 --- a/src/mongo/db/s/migration_destination_manager.h +++ b/src/mongo/db/s/migration_destination_manager.h @@ -77,7 +77,7 @@ public: /** * Reports the state of the migration manager as a BSON document. */ - void report(BSONObjBuilder& b); + void report(BSONObjBuilder& b, OperationContext* opCtx, bool waitForSteadyOrDone); /** * Returns a report on the active migration, if the migration is active. Otherwise return an @@ -222,6 +222,9 @@ private: State _state{READY}; std::string _errmsg; + + // Condition variable, which is signalled every time the state of the migration changes. + stdx::condition_variable _stateChangedCV; }; } // namespace mongo |