summaryrefslogtreecommitdiff
path: root/src/mongo/db/query/query_planner_test_fixture.h
diff options
context:
space:
mode:
authorMax Hirschhorn <max.hirschhorn@mongodb.com>2016-04-19 11:06:33 -0400
committerMax Hirschhorn <max.hirschhorn@mongodb.com>2016-04-19 11:06:33 -0400
commitd74720487db590a1ff1b39296601806e8d0067d5 (patch)
tree2754104d28938a3ace0b5be6e4301de0335b0496 /src/mongo/db/query/query_planner_test_fixture.h
parent4454864060be01d7e5a1cdb81617822f7bd9e813 (diff)
downloadmongo-d74720487db590a1ff1b39296601806e8d0067d5.tar.gz
SERVER-23112 Assign predicates to 2dsphere indexes using multikey paths.
The metadata in the IndexEntry struct indicates what prefixes of the indexed fields cause the index to be multikey. This information is used to get tighter bounds by assigning additional predicates to the index.
Diffstat (limited to 'src/mongo/db/query/query_planner_test_fixture.h')
-rw-r--r--src/mongo/db/query/query_planner_test_fixture.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mongo/db/query/query_planner_test_fixture.h b/src/mongo/db/query/query_planner_test_fixture.h
index c6e2e824337..5ef2490e171 100644
--- a/src/mongo/db/query/query_planner_test_fixture.h
+++ b/src/mongo/db/query/query_planner_test_fixture.h
@@ -61,7 +61,7 @@ protected:
void addIndex(BSONObj keyPattern, MatchExpression* filterExpr);
- void addIndex(BSONObj keyPattern, MultikeyPaths multikeyPaths);
+ void addIndex(BSONObj keyPattern, const MultikeyPaths& multikeyPaths);
void addIndex(BSONObj keyPattern, CollatorInterface* collator);