HDFS-15627. Log delete audits before collecting blocks.
(cherry picked from commit 740a2c4635
)
This commit is contained in:
parent
3274fd139d
commit
7e4572e56a
|
@ -3111,10 +3111,10 @@ public class FSNamesystem implements Namesystem, FSNamesystemMBean,
|
|||
writeUnlock(operationName);
|
||||
}
|
||||
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