diff options
author | Yoonsoo Kim <yoonsoo.kim@mongodb.com> | 2021-08-04 02:00:00 +0000 |
---|---|---|
committer | Evergreen Agent <no-reply@evergreen.mongodb.com> | 2021-08-04 02:59:35 +0000 |
commit | d356d2ed92812367bb2f61495f2ec064cad5a021 (patch) | |
tree | a21a7433c2ba9c641ae7991b8d518fe6c83ffb91 /src/mongo/db/s/set_shard_version_command.cpp | |
parent | bd221c2a5bfd2014bf1df08bb5497a5ee24650e2 (diff) | |
download | mongo-d356d2ed92812367bb2f61495f2ec064cad5a021.tar.gz |
SERVER-58735 Repurpose LastError for NotPrimaryError tracker
Diffstat (limited to 'src/mongo/db/s/set_shard_version_command.cpp')
-rw-r--r-- | src/mongo/db/s/set_shard_version_command.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mongo/db/s/set_shard_version_command.cpp b/src/mongo/db/s/set_shard_version_command.cpp index 608289cc0fe..9fa4fd152a0 100644 --- a/src/mongo/db/s/set_shard_version_command.cpp +++ b/src/mongo/db/s/set_shard_version_command.cpp @@ -38,7 +38,7 @@ #include "mongo/db/catalog_raii.h" #include "mongo/db/client.h" #include "mongo/db/commands.h" -#include "mongo/db/lasterror.h" +#include "mongo/db/not_primary_error_tracker.h" #include "mongo/db/operation_context.h" #include "mongo/db/repl/replication_coordinator.h" #include "mongo/db/s/collection_sharding_runtime.h" @@ -114,7 +114,7 @@ public: // Step 1 Client* client = opCtx->getClient(); - LastError::get(client).disable(); + NotPrimaryErrorTracker::get(client).disable(); const bool authoritative = cmdObj.getBoolField("authoritative"); |