diff options
Diffstat (limited to 'src/mongo/db/s/chunk_move_write_concern_options.cpp')
-rw-r--r-- | src/mongo/db/s/chunk_move_write_concern_options.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mongo/db/s/chunk_move_write_concern_options.cpp b/src/mongo/db/s/chunk_move_write_concern_options.cpp index 32ecdaf56dc..700f134a604 100644 --- a/src/mongo/db/s/chunk_move_write_concern_options.cpp +++ b/src/mongo/db/s/chunk_move_write_concern_options.cpp @@ -66,10 +66,10 @@ WriteConcernOptions getDefaultWriteConcernForMigration() { } // namespace StatusWith<WriteConcernOptions> ChunkMoveWriteConcernOptions::getEffectiveWriteConcern( - OperationContext* txn, const MigrationSecondaryThrottleOptions& options) { + OperationContext* opCtx, const MigrationSecondaryThrottleOptions& options) { auto secondaryThrottle = options.getSecondaryThrottle(); if (secondaryThrottle == MigrationSecondaryThrottleOptions::kDefault) { - if (txn->getServiceContext()->getGlobalStorageEngine()->supportsDocLocking()) { + if (opCtx->getServiceContext()->getGlobalStorageEngine()->supportsDocLocking()) { secondaryThrottle = MigrationSecondaryThrottleOptions::kOff; } else { secondaryThrottle = MigrationSecondaryThrottleOptions::kOn; |