From b66475c4e0b7eb39e0225bbb69a67eff6e6405f8 Mon Sep 17 00:00:00 2001 From: Dave Brosius Date: Fri, 8 May 2015 15:58:54 -0400 Subject: [PATCH] make sure lock gets unlocked --- .../src/org/apache/cassandra/stress/util/DynamicList.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/stress/src/org/apache/cassandra/stress/util/DynamicList.java b/tools/stress/src/org/apache/cassandra/stress/util/DynamicList.java index e9d43a36e7..e2bdd4e432 100644 --- a/tools/stress/src/org/apache/cassandra/stress/util/DynamicList.java +++ b/tools/stress/src/org/apache/cassandra/stress/util/DynamicList.java @@ -153,10 +153,10 @@ public class DynamicList public void remove(Node 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