summaryrefslogtreecommitdiff
path: root/src/mongo/db/ops/parsed_delete.cpp
diff options
context:
space:
mode:
authorBenjamin Murphy <benjamin_murphy@me.com>2016-03-09 14:40:24 -0500
committerBenjamin Murphy <benjamin_murphy@me.com>2016-03-11 10:45:42 -0500
commit0acec64c6eb36c80aab0984068ef5ac0fef23f21 (patch)
tree664c0dbe92603339db9efed46a55e7230a689752 /src/mongo/db/ops/parsed_delete.cpp
parent77fb3dd6e3a640e559bf44a67bf3e694884cf279 (diff)
downloadmongo-0acec64c6eb36c80aab0984068ef5ac0fef23f21.tar.gz
SERVER-12307 CanonicalQuery tracks whether an update or delete is isolated.
Diffstat (limited to 'src/mongo/db/ops/parsed_delete.cpp')
-rw-r--r--src/mongo/db/ops/parsed_delete.cpp5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/mongo/db/ops/parsed_delete.cpp b/src/mongo/db/ops/parsed_delete.cpp
index 1acc76dcb3e..ba193ea9ac8 100644
--- a/src/mongo/db/ops/parsed_delete.cpp
+++ b/src/mongo/db/ops/parsed_delete.cpp
@@ -113,9 +113,8 @@ bool ParsedDelete::canYield() const {
}
bool ParsedDelete::isIsolated() const {
- return _canonicalQuery.get()
- ? QueryPlannerCommon::hasNode(_canonicalQuery->root(), MatchExpression::ATOMIC)
- : LiteParsedQuery::isQueryIsolated(_request->getQuery());
+ return _canonicalQuery.get() ? _canonicalQuery->isIsolated()
+ : LiteParsedQuery::isQueryIsolated(_request->getQuery());
}
bool ParsedDelete::hasParsedQuery() const {