summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoryarai <yuta.arai@10gen.com>2018-09-20 12:24:27 -0400
committeryarai <yuta.arai@10gen.com>2018-09-20 13:58:56 -0400
commit4ec12c35a07a8c0f3a30692aec413a71fdab30de (patch)
treebae123a620da9535f63458f9878729f147ec1fa5
parent75dbd3c33802c9b323d2c090d1766835e5ad49e8 (diff)
downloadmongo-4ec12c35a07a8c0f3a30692aec413a71fdab30de.tar.gz
SERVER-37225 Fix addIndex unit test compile failure in query planner test
-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}}"),