Skip to content

Commit

Permalink
HDFS-17692. [FGL] fix bug in getContentSummary method
Browse files Browse the repository at this point in the history
  • Loading branch information
ZanderXu committed Dec 19, 2024
1 parent 170b0b8 commit 89d6934
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -3601,12 +3601,12 @@ ContentSummary getContentSummary(final String src) throws IOException {
final FSPermissionChecker pc = getPermissionChecker();
FSPermissionChecker.setOperationType(operationName);
try {
readLock(RwLockMode.FS);
readLock(RwLockMode.GLOBAL);
try {
checkOperation(OperationCategory.READ);
cs = FSDirStatAndListingOp.getContentSummary(dir, pc, src);
} finally {
readUnlock(RwLockMode.FS, operationName, getLockReportInfoSupplier(src));
readUnlock(RwLockMode.GLOBAL, operationName, getLockReportInfoSupplier(src));
}
} catch (AccessControlException ace) {
logAuditEvent(false, operationName, src);
Expand Down

0 comments on commit 89d6934

Please sign in to comment.