diff options
author | David Storch <david.storch@10gen.com> | 2015-07-30 20:19:53 -0400 |
---|---|---|
committer | David Storch <david.storch@10gen.com> | 2015-07-30 20:19:53 -0400 |
commit | 0549805e713327519702856deeb66b16cb727b99 (patch) | |
tree | 0c72ee4e7b46b914e7119c3843d0446a21cf11b3 /src/mongo/db/exec/idhack.cpp | |
parent | 3feccd233307a8a4fc81e312d072046f8cf2f499 (diff) | |
download | mongo-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.cpp | 2 |
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(); } |