HDFS-15627. Log delete audits before collecting blocks.
This commit is contained in:
parent
cc57eebe45
commit
740a2c4635
@ -3321,10 +3321,10 @@ boolean delete(String src, boolean recursive, boolean logRetryCache)
|
||||
throw e;
|
||||
}
|
||||
getEditLog().logSync();
|
||||
logAuditEvent(true, operationName, src);
|
||||
if (toRemovedBlocks != null) {
|
||||
removeBlocks(toRemovedBlocks); // Incremental deletion of blocks
|
||||
}
|
||||
logAuditEvent(true, operationName, src);
|
||||
return ret;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user