summaryrefslogtreecommitdiff
path: root/src/mongo/db/ops/delete.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/mongo/db/ops/delete.cpp')
-rw-r--r--src/mongo/db/ops/delete.cpp8
1 files changed, 0 insertions, 8 deletions
diff --git a/src/mongo/db/ops/delete.cpp b/src/mongo/db/ops/delete.cpp
index 7f509308ad4..6a7da15ee74 100644
--- a/src/mongo/db/ops/delete.cpp
+++ b/src/mongo/db/ops/delete.cpp
@@ -63,19 +63,11 @@ long long deleteObjects(OperationContext* txn,
ParsedDelete parsedDelete(txn, &request);
uassertStatusOK(parsedDelete.parseRequest());
- auto client = txn->getClient();
- auto lastOpAtOperationStart = repl::ReplClientInfo::forClient(client).getLastOp();
-
std::unique_ptr<PlanExecutor> exec = uassertStatusOK(
getExecutorDelete(txn, &CurOp::get(txn)->debug(), collection, &parsedDelete));
uassertStatusOK(exec->executePlan());
- // No-ops need to reset lastOp in the client, for write concern.
- if (repl::ReplClientInfo::forClient(client).getLastOp() == lastOpAtOperationStart) {
- repl::ReplClientInfo::forClient(client).setLastOpToSystemLastOpTime(txn);
- }
-
return DeleteStage::getNumDeleted(*exec);
}