From 9ebc833bd9966a83b4dc4f83a0e4c2de422e1846 Mon Sep 17 00:00:00 2001 From: Hari Khalsa Date: Wed, 9 Oct 2013 11:22:17 -0400 Subject: SERVER-10471 fix tree traversal code and build --- src/mongo/db/query/query_planner_common.h | 1 - src/mongo/db/query/query_planner_test.cpp | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) (limited to 'src') diff --git a/src/mongo/db/query/query_planner_common.h b/src/mongo/db/query/query_planner_common.h index 94c1c88ed18..7be7328716b 100644 --- a/src/mongo/db/query/query_planner_common.h +++ b/src/mongo/db/query/query_planner_common.h @@ -48,7 +48,6 @@ namespace mongo { for (size_t i = 0; i < root->numChildren(); ++i) { if (hasNode(root->getChild(i), type)) { - *out = root->getChild(i); return true; } } diff --git a/src/mongo/db/query/query_planner_test.cpp b/src/mongo/db/query/query_planner_test.cpp index 17f3b44edbb..3e50c7e5626 100644 --- a/src/mongo/db/query/query_planner_test.cpp +++ b/src/mongo/db/query/query_planner_test.cpp @@ -66,7 +66,7 @@ namespace { } void addIndex(BSONObj keyPattern, bool multikey, bool sparse) { - keyPatterns.push_back(IndexEntry(keyPattern, multikey, sparse)); + keyPatterns.push_back(IndexEntry(keyPattern, multikey, sparse, "note_to_self_dont_break_build")); } // -- cgit v1.2.1