summaryrefslogtreecommitdiff
path: root/src/mongo/db/exec/idhack.cpp
diff options
context:
space:
mode:
authorDavid Storch <david.storch@10gen.com>2015-07-30 20:19:53 -0400
committerDavid Storch <david.storch@10gen.com>2015-07-30 20:19:53 -0400
commit0549805e713327519702856deeb66b16cb727b99 (patch)
tree0c72ee4e7b46b914e7119c3843d0446a21cf11b3 /src/mongo/db/exec/idhack.cpp
parent3feccd233307a8a4fc81e312d072046f8cf2f499 (diff)
downloadmongo-0549805e713327519702856deeb66b16cb727b99.tar.gz
SERVER-19355 add skip support to the new find/getMore path in mongos
Diffstat (limited to 'src/mongo/db/exec/idhack.cpp')
-rw-r--r--src/mongo/db/exec/idhack.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mongo/db/exec/idhack.cpp b/src/mongo/db/exec/idhack.cpp
index afc7507a54f..a66ad20edda 100644
--- a/src/mongo/db/exec/idhack.cpp
+++ b/src/mongo/db/exec/idhack.cpp
@@ -242,7 +242,7 @@ void IDHackStage::doInvalidate(OperationContext* txn, const RecordId& dl, Invali
// static
bool IDHackStage::supportsQuery(const CanonicalQuery& query) {
return !query.getParsed().showRecordId() && query.getParsed().getHint().isEmpty() &&
- 0 == query.getParsed().getSkip() &&
+ !query.getParsed().getSkip() &&
CanonicalQuery::isSimpleIdQuery(query.getParsed().getFilter()) &&
!query.getParsed().isTailable();
}