diff options
Diffstat (limited to 'src/mongo/db/s/migration_source_manager.h')
-rw-r--r-- | src/mongo/db/s/migration_source_manager.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/mongo/db/s/migration_source_manager.h b/src/mongo/db/s/migration_source_manager.h index a5f1260c098..99ce842cdbd 100644 --- a/src/mongo/db/s/migration_source_manager.h +++ b/src/mongo/db/s/migration_source_manager.h @@ -172,6 +172,13 @@ public: return _critSecSignal; } + /** + * Returns a report on the active migration. + * + * Must be called with some form of lock on the collection namespace. + */ + BSONObj getMigrationStatusReport() const; + private: // Used to track the current state of the source manager. See the methods above, which have // comments explaining the various state transitions. |