You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@bookkeeper.apache.org by eo...@apache.org on 2018/11/13 16:06:58 UTC
[bookkeeper] branch branch-4.8 updated: [BRANCH 4.8] Fix
compilation issue introduced by issue #1791
This is an automated email from the ASF dual-hosted git repository.
eolivelli pushed a commit to branch branch-4.8
in repository https://gitbox.apache.org/repos/asf/bookkeeper.git
The following commit(s) were added to refs/heads/branch-4.8 by this push:
new 9cb144e [BRANCH 4.8] Fix compilation issue introduced by issue #1791
9cb144e is described below
commit 9cb144e2fb83284aae3176ac12185308f8e6e64f
Author: Sijie Guo <gu...@gmail.com>
AuthorDate: Tue Nov 13 08:06:51 2018 -0800
[BRANCH 4.8] Fix compilation issue introduced by issue #1791
Descriptions of the changes in this PR:
*Motivation*
when #1791 is cherry-picked into branch-4.8, it breaks the build.
*Changes*
Fix the compilation issue.
Related Issue: #1791
Reviewers: Enrico Olivelli <eo...@gmail.com>
This closes #1802 from sijie/fix_branch48, closes #1791
---
.../src/main/java/org/apache/bookkeeper/client/LedgerHandle.java | 9 +++++++++
1 file changed, 9 insertions(+)
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 64e0817..65b3818 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
@@ -494,6 +494,15 @@ public class LedgerHandle implements WriteHandle {
return getLedgerMetadata().isClosed();
}
+ /**
+ * Return if this handle is writable or not.
+ *
+ * @return true if this handle is writable, otherwise false
+ */
+ protected boolean isHandleWritable() {
+ return !getLedgerMetadata().isClosed();
+ }
+
void asyncCloseInternal(final CloseCallback cb, final Object ctx, final int rc) {
try {
doAsyncCloseInternal(cb, ctx, rc);