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_write_cmd.cpp | |
parent | 97e7a659d01f8f5ceef69a4f738cdf76396d99db (diff) | |
download | mongo-52b6b281105274c3a66312fc6ee8a2c12f4a9e40.tar.gz |
SERVER-57390 Remove getLastError implementation
Diffstat (limited to 'src/mongo/s/commands/cluster_write_cmd.cpp')
-rw-r--r-- | src/mongo/s/commands/cluster_write_cmd.cpp | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/src/mongo/s/commands/cluster_write_cmd.cpp b/src/mongo/s/commands/cluster_write_cmd.cpp index 189a7b273c3..e4d41e28f23 100644 --- a/src/mongo/s/commands/cluster_write_cmd.cpp +++ b/src/mongo/s/commands/cluster_write_cmd.cpp @@ -50,7 +50,6 @@ #include "mongo/s/client/num_hosts_targeted_metrics.h" #include "mongo/s/client/shard_registry.h" #include "mongo/s/cluster_commands_helpers.h" -#include "mongo/s/cluster_last_error_info.h" #include "mongo/s/cluster_write.h" #include "mongo/s/commands/cluster_explain.h" #include "mongo/s/commands/document_shard_key_update_util.h" @@ -547,9 +546,6 @@ private: break; } - // Save the last opTimes written on each shard for this client, to allow GLE to work - ClusterLastErrorInfo::get(opCtx->getClient())->addHostOpTimes(stats.getWriteOpTimes()); - // Record the number of shards targeted by this write. CurOp::get(opCtx)->debug().nShards = stats.getTargetedShards().size() + (updatedShardKey ? 1 : 0); |