bookkeeper-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From iv...@apache.org
Subject bookkeeper git commit: BOOKKEEPER-800: Expose whether a ledger is closed or not (ivank)
Date Fri, 05 Dec 2014 13:38:36 GMT
Repository: bookkeeper
Updated Branches:
  refs/heads/branch-4.2 b1493cd0d -> dc7e8f358


BOOKKEEPER-800: Expose whether a ledger is closed or not (ivank)


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

Branch: refs/heads/branch-4.2
Commit: dc7e8f3581bed589f28cb7d547ae0acfe713c2b4
Parents: b1493cd
Author: Ivan Kelly <ivank@apache.org>
Authored: Fri Dec 5 14:10:20 2014 +0100
Committer: Ivan Kelly <ivank@apache.org>
Committed: Fri Dec 5 14:38:19 2014 +0100

----------------------------------------------------------------------
 CHANGES.txt                                                   | 5 +++++
 .../main/java/org/apache/bookkeeper/client/LedgerHandle.java  | 7 +++++++
 2 files changed, 12 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/bookkeeper/blob/dc7e8f35/CHANGES.txt
----------------------------------------------------------------------
diff --git a/CHANGES.txt b/CHANGES.txt
index e3c178a..a6c26b4 100644
--- a/CHANGES.txt
+++ b/CHANGES.txt
@@ -6,6 +6,11 @@ Release 4.2.4 - unreleased
 
       BOOKKEEPER-815: Ledger fence state is lost when the ledger file is evicted (Charles
Xie via ivank)
 
+    IMPROVEMENTS:
+
+      BOOKKEEPER-800: Expose whether a ledger is closed or not (ivank)
+
+
 Release 4.2.3 - 2014-06-27
 
   Backward compatible changes:

http://git-wip-us.apache.org/repos/asf/bookkeeper/blob/dc7e8f35/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 5a9c752..dc0704b 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
@@ -236,6 +236,13 @@ public class LedgerHandle {
     }
 
     /**
+     * Has the ledger been closed?
+     */
+    public boolean isClosed() {
+        return metadata.isClosed();
+    }
+
+    /**
      * Same as public version of asyncClose except that this one takes an
      * additional parameter which is the return code to hand to all the pending
      * add ops


Mime
View raw message