HDFS-15627. Log delete audits before collecting blocks.
(cherry picked from commit 740a2c46353f8005dbed6f5bc15f21acfc4a6a23)
This commit is contained in:
parent
2667fbd085
commit
9aefc1759b
@ -3052,10 +3052,10 @@ boolean delete(String src, boolean recursive, boolean logRetryCache)
|
||||
writeUnlock(operationName);
|
||||
}
|
||||
getEditLog().logSync();
|
||||
logAuditEvent(true, operationName, src);
|
||||
if (toRemovedBlocks != null) {
|
||||
removeBlocks(toRemovedBlocks); // Incremental deletion of blocks
|
||||
}
|
||||
logAuditEvent(true, operationName, src);
|
||||
return ret;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user