From 4ec12c35a07a8c0f3a30692aec413a71fdab30de Mon Sep 17 00:00:00 2001 From: yarai Date: Thu, 20 Sep 2018 12:24:27 -0400 Subject: SERVER-37225 Fix addIndex unit test compile failure in query planner test --- src/mongo/db/query/query_planner_all_paths_index_test.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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}}"), -- cgit v1.2.1