diff options
Diffstat (limited to 'src/mongo/db/s/migration_impl.h')
-rw-r--r-- | src/mongo/db/s/migration_impl.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/mongo/db/s/migration_impl.h b/src/mongo/db/s/migration_impl.h index a5d86e8d544..e3d451de2db 100644 --- a/src/mongo/db/s/migration_impl.h +++ b/src/mongo/db/s/migration_impl.h @@ -42,6 +42,7 @@ namespace mongo { class CollectionMetadata; +class MigrationSessionId; class OperationContext; template <typename T> class StatusWith; @@ -114,7 +115,7 @@ public: /** * Starts the move chunk operation. */ - Status start(BSONObj shardKeyPattern); + Status start(const MigrationSessionId& sessionId, const BSONObj& shardKeyPattern); /** * Implements the migration critical section. Needs to be invoked after all data has been moved @@ -125,7 +126,7 @@ public: * Since some migration failures are non-recoverable, it may also shut down the server on * certain errors. */ - Status commitMigration(); + Status commitMigration(const MigrationSessionId& sessionId); const NamespaceString& getNss() const { return _nss; |