diff options
author | Benjamin Murphy <benjamin_murphy@me.com> | 2016-03-09 14:40:24 -0500 |
---|---|---|
committer | Benjamin Murphy <benjamin_murphy@me.com> | 2016-03-11 10:45:42 -0500 |
commit | 0acec64c6eb36c80aab0984068ef5ac0fef23f21 (patch) | |
tree | 664c0dbe92603339db9efed46a55e7230a689752 /src/mongo/db/ops/parsed_delete.cpp | |
parent | 77fb3dd6e3a640e559bf44a67bf3e694884cf279 (diff) | |
download | mongo-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.cpp | 5 |
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 { |