graysonzeng commented on code in PR #4135:
URL: https://github.com/apache/bookkeeper/pull/4135#discussion_r1420773708


##########
bookkeeper-server/src/main/java/org/apache/bookkeeper/bookie/storage/directentrylogger/DirectEntryLogger.java:
##########
@@ -244,14 +244,15 @@ private ByteBuf internalReadEntry(long ledgerId, long 
entryId, long location, bo
 
         long start = System.nanoTime();
         LogReader reader = getReader(logId);
-
+        ByteBuf buf = null;

Review Comment:
   Yes. If the code reaches catch code block, the buf should be null. We don't 
release it



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to