summaryrefslogtreecommitdiff
path: root/src/mongo/s/write_ops/write_without_shard_key_util.cpp
diff options
context:
space:
mode:
authorJack Mulrow <jack.mulrow@mongodb.com>2023-04-24 20:32:29 +0000
committerEvergreen Agent <no-reply@evergreen.mongodb.com>2023-05-04 16:35:50 +0000
commit2fafe2adeffb424d16bf14ef4686caf645adfba5 (patch)
tree9cec7377b1a37290850dd9a67de1d19923a2f809 /src/mongo/s/write_ops/write_without_shard_key_util.cpp
parent6adceba617ddf90c2d739ccf7b383f4a3b5f189b (diff)
downloadmongo-2fafe2adeffb424d16bf14ef4686caf645adfba5.tar.gz
SERVER-75676 Run transaction API cleanup tasks on out of line executor
Diffstat (limited to 'src/mongo/s/write_ops/write_without_shard_key_util.cpp')
-rw-r--r--src/mongo/s/write_ops/write_without_shard_key_util.cpp8
1 files changed, 2 insertions, 6 deletions
diff --git a/src/mongo/s/write_ops/write_without_shard_key_util.cpp b/src/mongo/s/write_ops/write_without_shard_key_util.cpp
index 9e8366cfeb8..ba2bca7c03b 100644
--- a/src/mongo/s/write_ops/write_without_shard_key_util.cpp
+++ b/src/mongo/s/write_ops/write_without_shard_key_util.cpp
@@ -270,13 +270,9 @@ StatusWith<ClusterWriteWithoutShardKeyResponse> runTwoPhaseWriteProtocol(Operati
auto& executor = Grid::get(opCtx)->getExecutorPool()->getFixedExecutor();
auto inlineExecutor = std::make_shared<executor::InlineExecutor>();
- auto sleepInlineExecutor = inlineExecutor->getSleepableExecutor(executor);
- auto txn =
- txn_api::SyncTransactionWithRetries(opCtx,
- sleepInlineExecutor,
- TransactionRouterResourceYielder::makeForLocalHandoff(),
- inlineExecutor);
+ auto txn = txn_api::SyncTransactionWithRetries(
+ opCtx, executor, TransactionRouterResourceYielder::makeForLocalHandoff(), inlineExecutor);
auto sharedBlock = std::make_shared<SharedBlock>(nss, cmdObj);
auto swResult = txn.runNoThrow(