ivankelly commented on a change in pull request #727: Issue 693: add interface 
and implementation of LedgerEntries
URL: https://github.com/apache/bookkeeper/pull/727#discussion_r152738102
 
 

 ##########
 File path: 
bookkeeper-server/src/main/java/org/apache/bookkeeper/client/api/LedgerEntries.java
 ##########
 @@ -35,24 +35,11 @@
     LedgerEntry getEntry(long entryId);
 
     /**
-     * In this method, It does not increment the reference counts of ByteBuf 
for the entries in this LedgerEntries.
+     * This method does not increment the reference count of ByteBuf for the 
entries in this LedgerEntries.
 
 Review comment:
   Calling this methods does not modify the reference count of the ByteBuf in 
the returned LedgerEntry objects.
   The caller who calls {@link #iterator()} should make sure that they do not 
call release on the LedgerEntry objects to avoid a double free. All reference 
counts will be decremented when the containing LedgerEntries object is closed.

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
[email protected]


With regards,
Apache Git Services

Reply via email to