diff options
Diffstat (limited to 'src/mongo/shell')
-rw-r--r-- | src/mongo/shell/explainable.js | 9 |
1 files changed, 1 insertions, 8 deletions
diff --git a/src/mongo/shell/explainable.js b/src/mongo/shell/explainable.js index 4f32af22221..0761bed0333 100644 --- a/src/mongo/shell/explainable.js +++ b/src/mongo/shell/explainable.js @@ -15,14 +15,7 @@ var Explainable = (function() { return "queryPlanner"; } - // If we're here, then the verbosity is a string. We reject invalid strings. - if (verbosity !== "queryPlanner" && verbosity !== "executionStats" && - verbosity !== "allPlansExecution") { - throw Error("explain verbosity must be one of {" + - "'queryPlanner'," + - "'executionStats'," + - "'allPlansExecution'}"); - } + // All verbosity strings are passed through. Server validates if it is a known option. return verbosity; }; |