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-958: Fix for ZeroBuffer Bug
Date Wed, 09 Nov 2016 07:49:26 GMT
Repository: bookkeeper
Updated Branches:
  refs/heads/master 8f0bed9f8 -> 026ef10e1


BOOKKEEPER-958: Fix for ZeroBuffer Bug

Fix for readOnlyBuffer of ZeroBuffer bug

Author: Charan Reddy Guttapalem <cguttapalem@salesforce.com>

Reviewers: Sijie Guo <sijie@apache.org>

Closes #66 from reddycharan/zerobufferfix


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

Branch: refs/heads/master
Commit: 026ef10e1e9706ead4f1bc6763ded2e28c91480d
Parents: 8f0bed9
Author: Charan Reddy Guttapalem <cguttapalem@salesforce.com>
Authored: Tue Nov 8 23:49:20 2016 -0800
Committer: Sijie Guo <sijie@apache.org>
Committed: Tue Nov 8 23:49:20 2016 -0800

----------------------------------------------------------------------
 .../src/main/java/org/apache/bookkeeper/util/ZeroBuffer.java        | 1 +
 1 file changed, 1 insertion(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/bookkeeper/blob/026ef10e/bookkeeper-server/src/main/java/org/apache/bookkeeper/util/ZeroBuffer.java
----------------------------------------------------------------------
diff --git a/bookkeeper-server/src/main/java/org/apache/bookkeeper/util/ZeroBuffer.java b/bookkeeper-server/src/main/java/org/apache/bookkeeper/util/ZeroBuffer.java
index 1109da2..16e0c28 100644
--- a/bookkeeper-server/src/main/java/org/apache/bookkeeper/util/ZeroBuffer.java
+++ b/bookkeeper-server/src/main/java/org/apache/bookkeeper/util/ZeroBuffer.java
@@ -67,6 +67,7 @@ public class ZeroBuffer {
         else {
             buffer = ByteBuffer.allocate(length);
             put(buffer);
+            buffer.rewind();
         }
         return buffer.asReadOnlyBuffer();
     }


Mime
View raw message