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;
|
throw e;
|
||||||
}
|
}
|
||||||
getEditLog().logSync();
|
getEditLog().logSync();
|
||||||
|
logAuditEvent(true, operationName, src);
|
||||||
if (toRemovedBlocks != null) {
|
if (toRemovedBlocks != null) {
|
||||||
removeBlocks(toRemovedBlocks); // Incremental deletion of blocks
|
removeBlocks(toRemovedBlocks); // Incremental deletion of blocks
|
||||||
}
|
}
|
||||||
logAuditEvent(true, operationName, src);
|
|
||||||
return ret;
|
return ret;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user