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:
parent
b0b2cb4a16
commit
62ff4e36cf
@ -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);
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user