diff options
author | Jack Mulrow <jack.mulrow@mongodb.com> | 2023-04-24 20:32:29 +0000 |
---|---|---|
committer | Evergreen Agent <no-reply@evergreen.mongodb.com> | 2023-05-04 16:35:50 +0000 |
commit | 2fafe2adeffb424d16bf14ef4686caf645adfba5 (patch) | |
tree | 9cec7377b1a37290850dd9a67de1d19923a2f809 /src/mongo/idl | |
parent | 6adceba617ddf90c2d739ccf7b383f4a3b5f189b (diff) | |
download | mongo-2fafe2adeffb424d16bf14ef4686caf645adfba5.tar.gz |
SERVER-75676 Run transaction API cleanup tasks on out of line executor
Diffstat (limited to 'src/mongo/idl')
-rw-r--r-- | src/mongo/idl/cluster_server_parameter_refresher.cpp | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/src/mongo/idl/cluster_server_parameter_refresher.cpp b/src/mongo/idl/cluster_server_parameter_refresher.cpp index efce752280b..13cc743c477 100644 --- a/src/mongo/idl/cluster_server_parameter_refresher.cpp +++ b/src/mongo/idl/cluster_server_parameter_refresher.cpp @@ -149,9 +149,7 @@ getFCVAndClusterParametersFromConfigServer() { auto executor = Grid::get(opCtx.get())->getExecutorPool()->getFixedExecutor(); auto inlineExecutor = std::make_shared<executor::InlineExecutor>(); - auto sleepInlineExecutor = inlineExecutor->getSleepableExecutor(executor); - txn_api::SyncTransactionWithRetries txn( - opCtx.get(), sleepInlineExecutor, nullptr, inlineExecutor); + txn_api::SyncTransactionWithRetries txn(opCtx.get(), executor, nullptr, inlineExecutor); txn.run(opCtx.get(), doFetch); return {*fcv, *allDocs}; } |