mirror of https://github.com/apache/cassandra
make sure lock gets unlocked
This commit is contained in:
parent
9e9846e73d
commit
b66475c4e0
|
|
@ -153,10 +153,10 @@ public class DynamicList<E>
|
|||
public void remove(Node<E> node)
|
||||
{
|
||||
lock.writeLock().lock();
|
||||
assert node.value != null;
|
||||
node.value = null;
|
||||
try
|
||||
{
|
||||
assert node.value != null;
|
||||
size--;
|
||||
|
||||
// go up through each level in the skip list, unlinking this node; this entails
|
||||
|
|
|
|||
Loading…
Reference in New Issue