summaryrefslogtreecommitdiff
path: root/src/mongo/db/ops/update.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/mongo/db/ops/update.cpp')
-rw-r--r--src/mongo/db/ops/update.cpp6
1 files changed, 1 insertions, 5 deletions
diff --git a/src/mongo/db/ops/update.cpp b/src/mongo/db/ops/update.cpp
index e55608644b5..56c69a9c662 100644
--- a/src/mongo/db/ops/update.cpp
+++ b/src/mongo/db/ops/update.cpp
@@ -95,10 +95,6 @@ UpdateResult update(OperationContext* opCtx, Database* db, const UpdateRequest&
auto exec = uassertStatusOK(
getExecutorUpdate(nullOpDebug, collection, &parsedUpdate, boost::none /* verbosity */));
- exec->executePlan();
-
- const UpdateStats* updateStats = UpdateStage::getUpdateStats(exec.get());
-
- return UpdateStage::makeUpdateResult(updateStats);
+ return exec->executeUpdate();
}
} // namespace mongo