diff options
author | David Storch <david.storch@10gen.com> | 2014-10-27 18:29:32 -0400 |
---|---|---|
committer | David Storch <david.storch@10gen.com> | 2014-10-28 13:33:45 -0400 |
commit | 87d6149c5316e0d8121c8045cbac7ad0161701b9 (patch) | |
tree | 2ae8c43ba04e835fb9416c481732225cdb8c658f /src/mongo/db/query/explain_common.cpp | |
parent | 86bfedc570002dae7d0d15d62e02001d0ed7fd04 (diff) | |
download | mongo-87d6149c5316e0d8121c8045cbac7ad0161701b9.tar.gz |
SERVER-15527 change default explain verbosity on the server to allPlansExecution
Diffstat (limited to 'src/mongo/db/query/explain_common.cpp')
-rw-r--r-- | src/mongo/db/query/explain_common.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/mongo/db/query/explain_common.cpp b/src/mongo/db/query/explain_common.cpp index 7af2043e07d..aeef9df95f6 100644 --- a/src/mongo/db/query/explain_common.cpp +++ b/src/mongo/db/query/explain_common.cpp @@ -55,16 +55,16 @@ namespace mongo { return Status(ErrorCodes::BadValue, "explain command requires a nested object"); } - *verbosity = ExplainCommon::EXEC_STATS; + *verbosity = ExplainCommon::EXEC_ALL_PLANS; if (!cmdObj["verbosity"].eoo()) { const char* verbStr = cmdObj["verbosity"].valuestrsafe(); if (mongoutils::str::equals(verbStr, "queryPlanner")) { *verbosity = ExplainCommon::QUERY_PLANNER; } - else if (mongoutils::str::equals(verbStr, "allPlansExecution")) { - *verbosity = ExplainCommon::EXEC_ALL_PLANS; + else if (mongoutils::str::equals(verbStr, "executionStats")) { + *verbosity = ExplainCommon::EXEC_STATS; } - else if (!mongoutils::str::equals(verbStr, "executionStats")) { + else if (!mongoutils::str::equals(verbStr, "allPlansExecution")) { return Status(ErrorCodes::BadValue, "verbosity string must be one of " "{'queryPlanner', 'executionStats', 'allPlansExecution'}"); } |