sijie commented on a change in pull request #1281: Issue #570: Introducing 
EntryLogManager.
URL: https://github.com/apache/bookkeeper/pull/1281#discussion_r180510817
 
 

 ##########
 File path: 
bookkeeper-server/src/main/java/org/apache/bookkeeper/bookie/EntryLogger.java
 ##########
 @@ -880,39 +1195,6 @@ protected ByteBuf initialValue() throws Exception {
         }
     };
 
-    public synchronized long addEntry(long ledger, ByteBuf entry, boolean 
rollLog) throws IOException {
-        if (null == logChannel) {
-            // log channel can be null because the file is deferred to be 
created when no writable ledger directory
-            // is available.
-            createNewLog();
-        }
-
-        int entrySize = entry.readableBytes() + 4; // Adding 4 bytes to 
prepend the size
-        boolean reachEntryLogLimit =
-            rollLog ? reachEntryLogLimit(entrySize) : 
readEntryLogHardLimit(entrySize);
-        // Create new log if logSizeLimit reached or current disk is full
-        boolean createNewLog = shouldCreateNewEntryLog.get();
 
 Review comment:
   any reason why `shouldCreateNewEntryLog` is removed?

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