Skip to content

Commit

Permalink
HDDS-3059 Changed auditing in OzoneManager#getFileStatus to read (#587)
Browse files Browse the repository at this point in the history
  • Loading branch information
HorizonNet committed Feb 23, 2020
1 parent 48d1875 commit f160f46
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2780,13 +2780,13 @@ public OzoneFileStatus getFileStatus(OmKeyArgs args) throws IOException {
} catch (IOException ex) {
metrics.incNumGetFileStatusFails();
auditSuccess = false;
AUDIT.logWriteFailure(
AUDIT.logReadFailure(
buildAuditMessageForFailure(OMAction.GET_FILE_STATUS,
(args == null) ? null : args.toAuditMap(), ex));
throw ex;
} finally {
if (auditSuccess) {
AUDIT.logWriteSuccess(
AUDIT.logReadSuccess(
buildAuditMessageForSuccess(OMAction.GET_FILE_STATUS,
(args == null) ? null : args.toAuditMap()));
}
Expand Down

0 comments on commit f160f46

Please sign in to comment.