summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/mongo/db/query/query_planner_all_paths_index_test.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/mongo/db/query/query_planner_all_paths_index_test.cpp b/src/mongo/db/query/query_planner_all_paths_index_test.cpp
index 405b81c52a4..3c6a3db9523 100644
--- a/src/mongo/db/query/query_planner_all_paths_index_test.cpp
+++ b/src/mongo/db/query/query_planner_all_paths_index_test.cpp
@@ -817,7 +817,9 @@ TEST_F(QueryPlannerTest, ChooseAllPathsIndexHint) {
}
TEST_F(QueryPlannerTest, ChooseAllPathsIndexHintByName) {
- addIndex(BSON("$**" << 1), nullptr, "allPaths");
+ StringData allPaths = "allPaths";
+ CollatorInterface* nullCollator = nullptr;
+ addIndex(BSON("$**" << 1), nullCollator, allPaths);
addIndex(BSON("x" << 1));
runQueryHint(fromjson("{x: {$eq: 1}}"),