diff options
Diffstat (limited to 'src/mongo/s/commands/cluster_command_test_fixture.cpp')
-rw-r--r-- | src/mongo/s/commands/cluster_command_test_fixture.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/mongo/s/commands/cluster_command_test_fixture.cpp b/src/mongo/s/commands/cluster_command_test_fixture.cpp index 316fc78782f..8c8813a3b11 100644 --- a/src/mongo/s/commands/cluster_command_test_fixture.cpp +++ b/src/mongo/s/commands/cluster_command_test_fixture.cpp @@ -122,7 +122,9 @@ DbResponse ClusterCommandTestFixture::runCommand(BSONObj cmd) { auto clusterGLE = ClusterLastErrorInfo::get(client.get()); clusterGLE->newRequest(); - return Strategy::clientCommand(opCtx.get(), opMsgRequest.serialize()); + AlternativeClientRegion acr(client); + auto rec = std::make_shared<RequestExecutionContext>(opCtx.get(), opMsgRequest.serialize()); + return Strategy::clientCommand(std::move(rec)).get(); } void ClusterCommandTestFixture::runCommandSuccessful(BSONObj cmd, bool isTargeted) { |