diff options
Diffstat (limited to 'src/mongo/db/query/idhack_runner.cpp')
-rw-r--r-- | src/mongo/db/query/idhack_runner.cpp | 9 |
1 files changed, 0 insertions, 9 deletions
diff --git a/src/mongo/db/query/idhack_runner.cpp b/src/mongo/db/query/idhack_runner.cpp index a8ec508e7e1..b9c0da6f82b 100644 --- a/src/mongo/db/query/idhack_runner.cpp +++ b/src/mongo/db/query/idhack_runner.cpp @@ -241,15 +241,6 @@ namespace mongo { } // static - bool IDHackRunner::supportsQuery(const CanonicalQuery& query) { - return !query.getParsed().showDiskLoc() - && query.getParsed().getHint().isEmpty() - && 0 == query.getParsed().getSkip() - && CanonicalQuery::isSimpleIdQuery(query.getParsed().getFilter()) - && !query.getParsed().hasOption(QueryOption_CursorTailable); - } - - // static bool IDHackRunner::hasCoveredProjection() const { // Some update operations use the IDHackRunner without creating a // canonical query. In this case, _query will be NULL. Just return |