summaryrefslogtreecommitdiff
path: root/src/mongo/db/commands/plan_cache_commands_test.cpp
diff options
context:
space:
mode:
authorIan Boros <ian.boros@10gen.com>2018-07-31 13:32:15 -0400
committerIan Boros <ian.boros@10gen.com>2018-08-31 10:59:42 -0400
commit7b42fb9ded007e90bd4961c46afa046af92675a8 (patch)
treeab8158bdb18fb1145cb51f25036d935949ee4181 /src/mongo/db/commands/plan_cache_commands_test.cpp
parentdc076ee0d1c4b9463084b51694957dc63f8ba593 (diff)
downloadmongo-7b42fb9ded007e90bd4961c46afa046af92675a8.tar.gz
SERVER-35333 caching plans for allPaths indexes
Diffstat (limited to 'src/mongo/db/commands/plan_cache_commands_test.cpp')
-rw-r--r--src/mongo/db/commands/plan_cache_commands_test.cpp18
1 files changed, 14 insertions, 4 deletions
diff --git a/src/mongo/db/commands/plan_cache_commands_test.cpp b/src/mongo/db/commands/plan_cache_commands_test.cpp
index a540d9c68db..e635fff5224 100644
--- a/src/mongo/db/commands/plan_cache_commands_test.cpp
+++ b/src/mongo/db/commands/plan_cache_commands_test.cpp
@@ -388,8 +388,13 @@ TEST(PlanCacheCommandsTest, planCacheClearOneKeyCollation) {
// Create plan cache with 2 entries. Add an index so that indexability is included in the plan
// cache keys.
PlanCache planCache;
- planCache.notifyOfIndexEntries(
- {IndexEntry(fromjson("{a: 1}"), false, false, false, "index_name", NULL, BSONObj())});
+ planCache.notifyOfIndexEntries({IndexEntry(fromjson("{a: 1}"),
+ false,
+ false,
+ false,
+ IndexEntry::Identifier{"index_name"},
+ NULL,
+ BSONObj())});
QuerySolution qs;
qs.cacheData.reset(createSolutionCacheData());
std::vector<QuerySolution*> solns;
@@ -633,8 +638,13 @@ TEST(PlanCacheCommandsTest, planCacheListPlansCollation) {
// Create plan cache with 2 entries. Add an index so that indexability is included in the plan
// cache keys. Give query with collation two solutions.
PlanCache planCache;
- planCache.notifyOfIndexEntries(
- {IndexEntry(fromjson("{a: 1}"), false, false, false, "index_name", NULL, BSONObj())});
+ planCache.notifyOfIndexEntries({IndexEntry(fromjson("{a: 1}"),
+ false,
+ false,
+ false,
+ IndexEntry::Identifier{"index_name"},
+ NULL,
+ BSONObj())});
QuerySolution qs;
qs.cacheData.reset(createSolutionCacheData());
std::vector<QuerySolution*> solns;