You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cassandra.apache.org by db...@apache.org on 2015/05/08 22:08:49 UTC

cassandra git commit: fixup last fix for bad lock guard

Repository: cassandra
Updated Branches:
  refs/heads/cassandra-2.1 b66475c4e -> def6b5fa1


fixup last fix for bad lock guard


Project: http://git-wip-us.apache.org/repos/asf/cassandra/repo
Commit: http://git-wip-us.apache.org/repos/asf/cassandra/commit/def6b5fa
Tree: http://git-wip-us.apache.org/repos/asf/cassandra/tree/def6b5fa
Diff: http://git-wip-us.apache.org/repos/asf/cassandra/diff/def6b5fa

Branch: refs/heads/cassandra-2.1
Commit: def6b5fa19c27d74bc69710b4e26d74dde9dd609
Parents: b66475c
Author: Dave Brosius <db...@mebigfatguy.com>
Authored: Fri May 8 16:08:36 2015 -0400
Committer: Dave Brosius <db...@mebigfatguy.com>
Committed: Fri May 8 16:08:36 2015 -0400

----------------------------------------------------------------------
 .../stress/src/org/apache/cassandra/stress/util/DynamicList.java  | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cassandra/blob/def6b5fa/tools/stress/src/org/apache/cassandra/stress/util/DynamicList.java
----------------------------------------------------------------------
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 e2bdd4e..ee04063 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,11 @@ public class DynamicList<E>
     public void remove(Node<E> node)
     {
         lock.writeLock().lock();
-        node.value = null;
         try
         {
             assert node.value != null;
+            node.value = null;
+
             size--;
 
             // go up through each level in the skip list, unlinking this node; this entails