diff options
author | Yoonsoo Kim <yoonsoo.kim@mongodb.com> | 2021-07-22 01:48:29 +0000 |
---|---|---|
committer | Evergreen Agent <no-reply@evergreen.mongodb.com> | 2021-07-22 02:13:04 +0000 |
commit | 52b6b281105274c3a66312fc6ee8a2c12f4a9e40 (patch) | |
tree | 9a641823ca82ac833444183251370dad61f81c6b /src/mongo/s/commands/cluster_command_test_fixture.cpp | |
parent | 97e7a659d01f8f5ceef69a4f738cdf76396d99db (diff) | |
download | mongo-52b6b281105274c3a66312fc6ee8a2c12f4a9e40.tar.gz |
SERVER-57390 Remove getLastError implementation
Diffstat (limited to 'src/mongo/s/commands/cluster_command_test_fixture.cpp')
-rw-r--r-- | src/mongo/s/commands/cluster_command_test_fixture.cpp | 10 |
1 files changed, 0 insertions, 10 deletions
diff --git a/src/mongo/s/commands/cluster_command_test_fixture.cpp b/src/mongo/s/commands/cluster_command_test_fixture.cpp index c7573969bd7..6b1daa92292 100644 --- a/src/mongo/s/commands/cluster_command_test_fixture.cpp +++ b/src/mongo/s/commands/cluster_command_test_fixture.cpp @@ -41,7 +41,6 @@ #include "mongo/db/logical_time_validator.h" #include "mongo/db/read_write_concern_defaults.h" #include "mongo/db/vector_clock.h" -#include "mongo/s/cluster_last_error_info.h" #include "mongo/util/fail_point.h" #include "mongo/util/options_parser/startup_option_init.h" #include "mongo/util/tick_source_mock.h" @@ -127,15 +126,6 @@ DbResponse ClusterCommandTestFixture::runCommand(BSONObj cmd) { const auto opMsgRequest = OpMsgRequest::fromDBAndBody(kNss.db(), cmd); - // Ensure the clusterGLE on the Client has not yet been initialized. - ASSERT(!ClusterLastErrorInfo::get(client.get())); - - // Initialize the cluster last error info for the client with a new request. - ClusterLastErrorInfo::get(client.get()) = std::make_shared<ClusterLastErrorInfo>(); - ASSERT(ClusterLastErrorInfo::get(client.get())); - auto clusterGLE = ClusterLastErrorInfo::get(client.get()); - clusterGLE->newRequest(); - AlternativeClientRegion acr(client); auto rec = std::make_shared<RequestExecutionContext>(opCtx.get(), opMsgRequest.serialize()); return Strategy::clientCommand(std::move(rec)).get(); |