summaryrefslogtreecommitdiff
path: root/src/mongo/db/ops/modifier_pull_all.cpp
diff options
context:
space:
mode:
authorAndrew Morrow <acm@10gen.com>2013-07-19 17:41:14 -0400
committerAndrew Morrow <acm@10gen.com>2013-07-22 14:03:59 -0400
commitcd03b044d5050a763f7572471aaf2d8c9b3b59d2 (patch)
treee1ecc13a211cc226ec77f020fde8e6c97031cee4 /src/mongo/db/ops/modifier_pull_all.cpp
parent4e2b1743b1366a5c6f943dbb40df2d19ac190da5 (diff)
downloadmongo-cd03b044d5050a763f7572471aaf2d8c9b3b59d2.tar.gz
SERVER-10267 Remove in-place state from mods now that mutable and udpate driver handle it
Diffstat (limited to 'src/mongo/db/ops/modifier_pull_all.cpp')
-rw-r--r--src/mongo/db/ops/modifier_pull_all.cpp5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/mongo/db/ops/modifier_pull_all.cpp b/src/mongo/db/ops/modifier_pull_all.cpp
index f805dd8560d..e4ca877e419 100644
--- a/src/mongo/db/ops/modifier_pull_all.cpp
+++ b/src/mongo/db/ops/modifier_pull_all.cpp
@@ -144,7 +144,7 @@ namespace mongo {
// No children, nothing to do -- not an error state
if (!_preparedState->pathFoundElement.hasChildren()) {
- execInfo->inPlace = execInfo->noOp = true;
+ execInfo->noOp = true;
} else {
mutablebson::Element elem = _preparedState->pathFoundElement.leftChild();
while (elem.ok()) {
@@ -159,13 +159,12 @@ namespace mongo {
// Nothing to remove so it is a noOp.
if (_preparedState->elementsToRemove.empty())
- execInfo->inPlace = execInfo->noOp = true;
+ execInfo->noOp = true;
}
} else {
// Let the caller know we can't do anything given the mod, _fieldRef, and doc.
execInfo->noOp = true;
- execInfo->inPlace = true;
//okay if path not found