APIBuilder: Unlock RW-lock in remove()
The remove() function accidentally calls lock() in the finally
block, leaving the RW-lock unlocked.
Refs: scylladb/scylla#7991
(cherry picked from commit 59fd4d2b03
)
This commit is contained in:
parent
2c9565024f
commit
c510a5683b
@ -172,7 +172,7 @@ public class APIBuilder extends MBeanServerBuilder {
|
|||||||
logger.log(SEVERE, "Unexpected error.", x);
|
logger.log(SEVERE, "Unexpected error.", x);
|
||||||
}
|
}
|
||||||
} finally {
|
} finally {
|
||||||
lock.writeLock().lock();
|
lock.writeLock().unlock();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user