summaryrefslogtreecommitdiff
path: root/src/mongo/db/commands/explain_cmd.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/mongo/db/commands/explain_cmd.cpp')
-rw-r--r--src/mongo/db/commands/explain_cmd.cpp10
1 files changed, 1 insertions, 9 deletions
diff --git a/src/mongo/db/commands/explain_cmd.cpp b/src/mongo/db/commands/explain_cmd.cpp
index 9a411c8fa26..b7184152110 100644
--- a/src/mongo/db/commands/explain_cmd.cpp
+++ b/src/mongo/db/commands/explain_cmd.cpp
@@ -67,15 +67,7 @@ namespace mongo {
const string& dbname,
BSONObj& cmdObj, int options,
string& errmsg,
- BSONObjBuilder& result,
- bool fromRepl) {
- // Should never get explain commands issued from replication.
- if (fromRepl) {
- Status commandStat(ErrorCodes::IllegalOperation,
- "explain command should not be from repl");
- appendCommandStatus(result, commandStat);
- return false;
- }
+ BSONObjBuilder& result) {
ExplainCommon::Verbosity verbosity;
Status parseStatus = ExplainCommon::parseCmdBSON(cmdObj, &verbosity);