HDFS-16787. Remove the redundant lock in DataSetLockManager#removeLock (#4948). Contributed by ZanderXu.

Signed-off-by: He Xiaoqiao <hexiaoqiao@apache.org>
This commit is contained in:
ZanderXu 2022-10-10 20:05:02 +08:00 committed by GitHub
parent b0b2cb4a16
commit 62ff4e36cf
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -233,7 +233,6 @@ public void addLock(LockLevel level, String... resources) {
public void removeLock(LockLevel level, String... resources) {
String lockName = generateLockName(level, resources);
try (AutoCloseDataSetLock lock = writeLock(level, resources)) {
lock.lock();
lockMap.removeLock(lockName);
}
}