summaryrefslogtreecommitdiff
path: root/src/mongo/db/s/migration_destination_manager.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/mongo/db/s/migration_destination_manager.h')
-rw-r--r--src/mongo/db/s/migration_destination_manager.h5
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