diff options
Diffstat (limited to 'src/mongo/db/commands/find_cmd.cpp')
-rw-r--r-- | src/mongo/db/commands/find_cmd.cpp | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/src/mongo/db/commands/find_cmd.cpp b/src/mongo/db/commands/find_cmd.cpp index 8d89469a27f..38712e3e920 100644 --- a/src/mongo/db/commands/find_cmd.cpp +++ b/src/mongo/db/commands/find_cmd.cpp @@ -227,12 +227,6 @@ public: // Although it is a command, a find command gets counted as a query. globalOpCounters.gotQuery(); - if (opCtx->getClient()->isInDirectClient()) { - return appendCommandStatus( - result, - Status(ErrorCodes::IllegalOperation, "Cannot run find command from eval()")); - } - // Parse the command BSON to a QueryRequest. const bool isExplain = false; auto qrStatus = QueryRequest::makeFromFindCommand(nss, cmdObj, isExplain); |