Unable to find source-code formatter for language: diff. Available languages are: actionscript, ada, applescript, bash, c, c#, c++, cpp, css, erlang, go, groovy, haskell, html, java, javascript, js, json, lua, none, nyan, objc, perl, php, python, r, rainbow, ruby, scala, sh, sql, swift, visualbasic, xml, yaml
diff --git a/src/mongo/db/matcher/expression_geo.h b/src/mongo/db/matcher/expression_geo.h
index 856b310..5631e2e 100644
--- a/src/mongo/db/matcher/expression_geo.h
+++ b/src/mongo/db/matcher/expression_geo.h
@@ -151,7 +151,7 @@ public:
std::string toString() const {
std::stringstream ss;
- ss << " field=" << field;
+ ss << " maxdist=" << maxDistance;
ss << " isNearSphere=" << isNearSphere;
return ss.str();
diff --git a/src/mongo/db/query/query_planner_test_fixture.cpp b/src/mongo/db/query/query_planner_test_fixture.cpp
index 15ecad4..5725bd0 100644
--- a/src/mongo/db/query/query_planner_test_fixture.cpp
+++ b/src/mongo/db/query/query_planner_test_fixture.cpp
@@ -315,13 +315,14 @@ void QueryPlannerTest::dumpSolutions(mongoutils::str::stream& ost) const {
}
void QueryPlannerTest::assertNumSolutions(size_t expectSolutions) const {
- if (getNumSolutions() == expectSolutions) {
- return;
- }
mongoutils::str::stream ss;
ss << "expected " << expectSolutions << " solutions but got " << getNumSolutions()
<< " instead. solutions generated: " << '\n';
dumpSolutions(ss);
+ log() << static_cast<std::string>(ss);
+ if (getNumSolutions() == expectSolutions) {
+ return;
+ }
FAIL(ss);
}