diff options
Diffstat (limited to 'src/mongo/db/s/balancer/scoped_migration_request.h')
-rw-r--r-- | src/mongo/db/s/balancer/scoped_migration_request.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/mongo/db/s/balancer/scoped_migration_request.h b/src/mongo/db/s/balancer/scoped_migration_request.h index e3b4e3301da..b3f100d92d6 100644 --- a/src/mongo/db/s/balancer/scoped_migration_request.h +++ b/src/mongo/db/s/balancer/scoped_migration_request.h @@ -66,7 +66,7 @@ public: * * The destructor will handle removing the document when it is no longer needed. */ - static StatusWith<ScopedMigrationRequest> writeMigration(OperationContext* txn, + static StatusWith<ScopedMigrationRequest> writeMigration(OperationContext* opCtx, const MigrateInfo& migrate, bool waitForDelete); @@ -77,7 +77,7 @@ public: * This should only be used on Balancer recovery when a config.migrations document already * exists for the migration. */ - static ScopedMigrationRequest createForRecovery(OperationContext* txn, + static ScopedMigrationRequest createForRecovery(OperationContext* opCtx, const NamespaceString& nss, const BSONObj& minKey); @@ -102,12 +102,12 @@ public: void keepDocumentOnDestruct(); private: - ScopedMigrationRequest(OperationContext* txn, + ScopedMigrationRequest(OperationContext* opCtx, const NamespaceString& nss, const BSONObj& minKey); // Need an operation context with which to do a write in the destructor. - OperationContext* _txn; + OperationContext* _opCtx; // ns and minkey are needed to identify the migration document when it is removed from // config.migrations by the destructor. |