summaryrefslogtreecommitdiff
path: root/src/mongo/shell
diff options
context:
space:
mode:
authorHirday Gupta <hirday.gupta@mongodb.com>2020-06-24 16:49:07 +0000
committerEvergreen Agent <no-reply@evergreen.mongodb.com>2020-08-05 23:28:04 +0000
commit65a97f042f97a381c7cf009a99294885bd54cbf7 (patch)
treeed69a58dce674e21208bab0f68c8a407a26d80aa /src/mongo/shell
parent8cc74d5cacb1efbf0831c1e795b76a1d88ecc7a2 (diff)
downloadmongo-65a97f042f97a381c7cf009a99294885bd54cbf7.tar.gz
SERVER-48244 remove shell-side explain string validation
(cherry picked from commit c76a5544eb4423c7dbca6862fddf9371ce999f6f)
Diffstat (limited to 'src/mongo/shell')
-rw-r--r--src/mongo/shell/explainable.js9
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;
};