|
@@ -3601,12 +3601,12 @@ public class FSNamesystem implements Namesystem, FSNamesystemMBean,
|
|
|
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);
|