bookkeeper-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From si...@apache.org
Subject bookkeeper git commit: BOOKKEEPER-848: Use volatile for lastAddConfirmed (Matteo Merli via sijie)
Date Tue, 21 Apr 2015 07:39:41 GMT
Repository: bookkeeper
Updated Branches:
  refs/heads/master b24cd7fd8 -> 70da24d50


BOOKKEEPER-848: Use volatile for lastAddConfirmed (Matteo Merli via sijie)


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

Branch: refs/heads/master
Commit: 70da24d504e3f4cba0d87a0914a0add7ea19394d
Parents: b24cd7f
Author: Sijie Guo <sijie@apache.org>
Authored: Tue Apr 21 00:39:31 2015 -0700
Committer: Sijie Guo <sijie@apache.org>
Committed: Tue Apr 21 00:39:31 2015 -0700

----------------------------------------------------------------------
 CHANGES.txt                                                        | 2 ++
 .../src/main/java/org/apache/bookkeeper/client/LedgerHandle.java   | 2 +-
 2 files changed, 3 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/bookkeeper/blob/70da24d5/CHANGES.txt
----------------------------------------------------------------------
diff --git a/CHANGES.txt b/CHANGES.txt
index 9ce143b..c9842d1 100644
--- a/CHANGES.txt
+++ b/CHANGES.txt
@@ -77,6 +77,8 @@ Trunk (unreleased changes)
 
         BOOKKEEPER-810: Allow to configure TCP connect timeout (Charles Xie via sijie)
 
+        BOOKKEEPER-848: Use volatile for lastAddConfirmed (Matteo Merli via sijie)
+
 Release 4.3.0 - 2014-10-03
 
   Non-backward compatible changes:

http://git-wip-us.apache.org/repos/asf/bookkeeper/blob/70da24d5/bookkeeper-server/src/main/java/org/apache/bookkeeper/client/LedgerHandle.java
----------------------------------------------------------------------
diff --git a/bookkeeper-server/src/main/java/org/apache/bookkeeper/client/LedgerHandle.java
b/bookkeeper-server/src/main/java/org/apache/bookkeeper/client/LedgerHandle.java
index 8cc00eb..f0d79b2 100644
--- a/bookkeeper-server/src/main/java/org/apache/bookkeeper/client/LedgerHandle.java
+++ b/bookkeeper-server/src/main/java/org/apache/bookkeeper/client/LedgerHandle.java
@@ -64,7 +64,7 @@ public class LedgerHandle {
     final BookKeeper bk;
     final long ledgerId;
     long lastAddPushed;
-    long lastAddConfirmed;
+    volatile long lastAddConfirmed;
     long length;
     final DigestManager macManager;
     final DistributionSchedule distributionSchedule;


Mime
View raw message