summaryrefslogtreecommitdiff
path: root/src/mongo/db/exec
diff options
context:
space:
mode:
authorDianna Hohensee <dianna.hohensee@10gen.com>2016-01-04 14:21:16 -0500
committerDianna Hohensee <dianna.hohensee@10gen.com>2016-01-05 11:54:37 -0500
commit3b29ba46f2d7ce938ea0f084b2d0cb46d46c651e (patch)
treebe173db83fc0a28fd3037d89c8c4a70ae784e984 /src/mongo/db/exec
parentf297cfbd7469e0b179ab0909bfc005892c8f2923 (diff)
downloadmongo-3b29ba46f2d7ce938ea0f084b2d0cb46d46c651e.tar.gz
SERVER-22052 refactor Collection::deleteDocument to pass in the to-be-deleted document directly as a parameter.
Diffstat (limited to 'src/mongo/db/exec')
-rw-r--r--src/mongo/db/exec/delete.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mongo/db/exec/delete.cpp b/src/mongo/db/exec/delete.cpp
index 5a070fcdc0b..dd32150c5af 100644
--- a/src/mongo/db/exec/delete.cpp
+++ b/src/mongo/db/exec/delete.cpp
@@ -220,7 +220,7 @@ PlanStage::StageState DeleteStage::work(WorkingSetID* out) {
// Do the write, unless this is an explain.
if (!_params.isExplain) {
WriteUnitOfWork wunit(getOpCtx());
- _collection->deleteDocument(getOpCtx(), rloc, _params.fromMigrate);
+ _collection->deleteDocument(getOpCtx(), rloc, member->obj.value(), _params.fromMigrate);
wunit.commit();
}