diff options
author | Louis Williams <louis.williams@mongodb.com> | 2018-05-25 12:57:13 -0400 |
---|---|---|
committer | Louis Williams <louis.williams@mongodb.com> | 2018-05-25 12:57:13 -0400 |
commit | 7d0ea48dc8522f41e93b86d9c8f77c64b623ba60 (patch) | |
tree | 50273fdffe5a6ce820292182af98e609c57f45a9 /src/mongo/s/commands/cluster_explain_cmd.cpp | |
parent | b322ee9200172276b8d4935c623728129d62c3ef (diff) | |
download | mongo-7d0ea48dc8522f41e93b86d9c8f77c64b623ba60.tar.gz |
Revert "SERVER-34653 don't parse if early auth-checks can reject."
This reverts commit f2e762dc80e63fa47bd4c1d48e05f628464b0f54.
Diffstat (limited to 'src/mongo/s/commands/cluster_explain_cmd.cpp')
-rw-r--r-- | src/mongo/s/commands/cluster_explain_cmd.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/mongo/s/commands/cluster_explain_cmd.cpp b/src/mongo/s/commands/cluster_explain_cmd.cpp index f5e49fdb401..cf9125bdeea 100644 --- a/src/mongo/s/commands/cluster_explain_cmd.cpp +++ b/src/mongo/s/commands/cluster_explain_cmd.cpp @@ -101,8 +101,7 @@ private: auto bob = result->getBodyBuilder(); _innerInvocation->explain(opCtx, _verbosity, &bob); } catch (const ExceptionFor<ErrorCodes::Unauthorized>&) { - CommandHelpers::auditLogAuthEvent( - opCtx, this, *_outerRequest, ErrorCodes::Unauthorized); + CommandHelpers::logAuthViolation(opCtx, this, *_outerRequest, ErrorCodes::Unauthorized); throw; } } |