eolivelli commented on a change in pull request #643: BP-14 part 2 - client 
side changes
URL: https://github.com/apache/bookkeeper/pull/643#discussion_r145690148
 
 

 ##########
 File path: 
bookkeeper-server/src/main/java/org/apache/bookkeeper/client/LedgerHandle.java
 ##########
 @@ -84,15 +85,32 @@
     final BookKeeper bk;
     final long ledgerId;
     long lastAddPushed;
+    /**
+      * Last entryId which has been confirmed to be written durably to the 
bookies.
+      * This value is used by readers, the the LAC protocol
+      */
     volatile long lastAddConfirmed;
 
+    /**
+      * Last entryId which has been confirmed to be written durably to the 
bookies,
+      * this is an internal variable used to track the status of entries and 
to handle correcly the lastAddConfirmed
+      * value
+      */
+     volatile long lastAddSynced;
 
 Review comment:
   you are right!  they contain the same value.
   I used that variable in my first prototype.
   Thank you very much @sijie 

----------------------------------------------------------------
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