diff options
author | Adam Midvidy <amidvidy@gmail.com> | 2015-03-30 10:32:34 -0400 |
---|---|---|
committer | Adam Midvidy <amidvidy@gmail.com> | 2015-03-30 12:16:34 -0400 |
commit | ef19e2624fdda864e33ceb5d88cf7a056e2b76b8 (patch) | |
tree | 70fc93be09204e61704b95cd78f4977d72897962 | |
parent | 06785ef692bae4beb4df859c3d4da2e0517ba0d5 (diff) | |
download | mongo-ef19e2624fdda864e33ceb5d88cf7a056e2b76b8.tar.gz |
SERVER-7775 remove double auditing in fsyncUnlock
-rw-r--r-- | src/mongo/db/commands/fsync.cpp | 9 |
1 files changed, 1 insertions, 8 deletions
diff --git a/src/mongo/db/commands/fsync.cpp b/src/mongo/db/commands/fsync.cpp index 267ecf82a0e..7c0442f205e 100644 --- a/src/mongo/db/commands/fsync.cpp +++ b/src/mongo/db/commands/fsync.cpp @@ -182,14 +182,7 @@ namespace mongo { ResourcePattern::forClusterResource(), ActionType::unlock); - if (isAuthorized) { - audit::logFsyncUnlockAuthzCheck(client, ErrorCodes::OK); - return Status::OK(); - } - else { - audit::logFsyncUnlockAuthzCheck(client, ErrorCodes::Unauthorized); - return Status(ErrorCodes::Unauthorized, "Unauthorized"); - } + return isAuthorized ? Status::OK() : Status(ErrorCodes::Unauthorized, "Unauthorized"); } bool run(OperationContext* txn, |