summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAdam Midvidy <amidvidy@gmail.com>2015-03-30 10:32:34 -0400
committerAdam Midvidy <amidvidy@gmail.com>2015-03-30 12:16:34 -0400
commitef19e2624fdda864e33ceb5d88cf7a056e2b76b8 (patch)
tree70fc93be09204e61704b95cd78f4977d72897962
parent06785ef692bae4beb4df859c3d4da2e0517ba0d5 (diff)
downloadmongo-ef19e2624fdda864e33ceb5d88cf7a056e2b76b8.tar.gz
SERVER-7775 remove double auditing in fsyncUnlock
-rw-r--r--src/mongo/db/commands/fsync.cpp9
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,