summaryrefslogtreecommitdiff
path: root/src/mongo/idl
diff options
context:
space:
mode:
Diffstat (limited to 'src/mongo/idl')
-rw-r--r--src/mongo/idl/cluster_server_parameter_refresher.cpp4
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};
}