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);
|
writeUnlock(operationName);
|
||||||
}
|
}
|
||||||
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