summaryrefslogtreecommitdiff
path: root/src/mongo/s/commands/cluster_explain_cmd.cpp
diff options
context:
space:
mode:
authorLouis Williams <louis.williams@mongodb.com>2018-05-25 12:57:13 -0400
committerLouis Williams <louis.williams@mongodb.com>2018-05-25 12:57:13 -0400
commit7d0ea48dc8522f41e93b86d9c8f77c64b623ba60 (patch)
tree50273fdffe5a6ce820292182af98e609c57f45a9 /src/mongo/s/commands/cluster_explain_cmd.cpp
parentb322ee9200172276b8d4935c623728129d62c3ef (diff)
downloadmongo-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.cpp3
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;
}
}