summaryrefslogtreecommitdiff
path: root/src/mongo/db/query/query_planner.cpp
diff options
context:
space:
mode:
authorTess Avitabile <tess.avitabile@mongodb.com>2016-05-25 15:26:24 -0400
committerTess Avitabile <tess.avitabile@mongodb.com>2016-06-02 13:27:48 -0400
commit0d2f72f5471f7c0f283ceea314c48d2e25d7d556 (patch)
tree9bd0d6229b343c81c4939cc49bdcf85836c6c41f /src/mongo/db/query/query_planner.cpp
parent4c79077a39e036a6ddac5fadfbe1513348a04e35 (diff)
downloadmongo-0d2f72f5471f7c0f283ceea314c48d2e25d7d556.tar.gz
SERVER-23618 Add collation support for partial indexes
Diffstat (limited to 'src/mongo/db/query/query_planner.cpp')
-rw-r--r--src/mongo/db/query/query_planner.cpp6
1 files changed, 0 insertions, 6 deletions
diff --git a/src/mongo/db/query/query_planner.cpp b/src/mongo/db/query/query_planner.cpp
index 2b76ac930f9..faad7ca6aae 100644
--- a/src/mongo/db/query/query_planner.cpp
+++ b/src/mongo/db/query/query_planner.cpp
@@ -851,12 +851,6 @@ Status QueryPlanner::plan(const CanonicalQuery& query,
continue;
}
- // If the index collation differs from the query collation, the index should not be
- // used to provide a sort, because strings will be ordered incorrectly.
- if (!CollatorInterface::collatorsMatch(index.collator, query.getCollator())) {
- continue;
- }
-
// Partial indexes can only be used to provide a sort only if the query predicate is
// compatible.
if (index.filterExpr && !expression::isSubsetOf(query.root(), index.filterExpr)) {