summaryrefslogtreecommitdiff
path: root/src/mongo/s/commands/cluster_write_cmd.cpp
diff options
context:
space:
mode:
authorYoonsoo Kim <yoonsoo.kim@mongodb.com>2021-07-22 01:48:29 +0000
committerEvergreen Agent <no-reply@evergreen.mongodb.com>2021-07-22 02:13:04 +0000
commit52b6b281105274c3a66312fc6ee8a2c12f4a9e40 (patch)
tree9a641823ca82ac833444183251370dad61f81c6b /src/mongo/s/commands/cluster_write_cmd.cpp
parent97e7a659d01f8f5ceef69a4f738cdf76396d99db (diff)
downloadmongo-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.cpp4
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);