From 7b42fb9ded007e90bd4961c46afa046af92675a8 Mon Sep 17 00:00:00 2001 From: Ian Boros Date: Tue, 31 Jul 2018 13:32:15 -0400 Subject: SERVER-35333 caching plans for allPaths indexes --- src/mongo/db/query/query_planner_test.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/mongo/db/query/query_planner_test.cpp') diff --git a/src/mongo/db/query/query_planner_test.cpp b/src/mongo/db/query/query_planner_test.cpp index 1c566c78b4e..4b69a1fb8d8 100644 --- a/src/mongo/db/query/query_planner_test.cpp +++ b/src/mongo/db/query/query_planner_test.cpp @@ -4296,7 +4296,7 @@ TEST_F(QueryPlannerTest, TagAccordingToCacheFailsOnBadInput) { std::unique_ptr indexTree(new PlanCacheIndexTree()); indexTree->setIndexEntry(IndexEntry(BSON("a" << 1), "a_1")); - std::map indexMap; + std::map indexMap; // Null filter. Status s = QueryPlanner::tagAccordingToCache(NULL, indexTree.get(), indexMap); @@ -4311,7 +4311,7 @@ TEST_F(QueryPlannerTest, TagAccordingToCacheFailsOnBadInput) { ASSERT_NOT_OK(s); // Index found once added to the map. - indexMap["a_1"_sd] = 0; + indexMap[IndexEntry::Identifier{"a_1"}] = 0; s = QueryPlanner::tagAccordingToCache(scopedCq->root(), indexTree.get(), indexMap); ASSERT_OK(s); -- cgit v1.2.1