cassandra-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From marc...@apache.org
Subject [2/6] cassandra git commit: Make isBuilt volatile in PartitionUpdate
Date Mon, 18 Sep 2017 07:00:08 GMT
Make isBuilt volatile in PartitionUpdate

Patch by marcuse; reviewed by Aleksey Yeschenko for CASSANDRA-13619


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

Branch: refs/heads/cassandra-3.11
Commit: bb3b332c42256609275b214b7fbeceeecb6a3f30
Parents: d79fc9a
Author: Marcus Eriksson <marcuse@apache.org>
Authored: Thu Sep 14 09:16:17 2017 +0200
Committer: Marcus Eriksson <marcuse@apache.org>
Committed: Mon Sep 18 08:51:53 2017 +0200

----------------------------------------------------------------------
 CHANGES.txt                                                      | 1 +
 src/java/org/apache/cassandra/db/partitions/PartitionUpdate.java | 2 +-
 2 files changed, 2 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cassandra/blob/bb3b332c/CHANGES.txt
----------------------------------------------------------------------
diff --git a/CHANGES.txt b/CHANGES.txt
index 7afbfaa..84ef845 100644
--- a/CHANGES.txt
+++ b/CHANGES.txt
@@ -1,4 +1,5 @@
 3.0.15
+ * Make isBuilt volatile in PartitionUpdate (CASSANDRA-13619)
  * Prevent integer overflow of timestamps in CellTest and RowsTest (CASSANDRA-13866)
  * Fix counter application order in short read protection (CASSANDRA-12872)
  * Don't block RepairJob execution on validation futures (CASSANDRA-13797)

http://git-wip-us.apache.org/repos/asf/cassandra/blob/bb3b332c/src/java/org/apache/cassandra/db/partitions/PartitionUpdate.java
----------------------------------------------------------------------
diff --git a/src/java/org/apache/cassandra/db/partitions/PartitionUpdate.java b/src/java/org/apache/cassandra/db/partitions/PartitionUpdate.java
index 7bd5345..93b3568 100644
--- a/src/java/org/apache/cassandra/db/partitions/PartitionUpdate.java
+++ b/src/java/org/apache/cassandra/db/partitions/PartitionUpdate.java
@@ -65,7 +65,7 @@ public class PartitionUpdate extends AbstractBTreePartition
     // happens when the update is read. Further writing is then rejected though a manual
call
     // to allowNewUpdates() allow new writes. We could make that more implicit but only triggers
     // really requires that so we keep it simple for now).
-    private boolean isBuilt;
+    private volatile boolean isBuilt;
     private boolean canReOpen = true;
 
     private Holder holder;


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@cassandra.apache.org
For additional commands, e-mail: commits-help@cassandra.apache.org


Mime
View raw message