xiezhx9 commented on code in PR #4643:
URL: https://github.com/apache/bookkeeper/pull/4643#discussion_r2386626083


##########
bookkeeper-common-allocator/src/main/java/org/apache/bookkeeper/common/allocator/impl/ByteBufAllocatorImpl.java:
##########
@@ -140,7 +140,7 @@ public ByteBuf buffer(int initialCapacity) {
 
     @Override
     public ByteBuf buffer(int initialCapacity, int maxCapacity) {
-        if (poolingPolicy == PoolingPolicy.PooledDirect) {
+        if (poolingPolicy == PoolingPolicy.PooledDirect || poolingPolicy == 
PoolingPolicy.UnpooledDirect) {

Review Comment:
   Unpooled did the same thing here
   
   > `poolingPolicy == PoolingPolicy.PooledDirect` condition in newDirectBuffer
   
   



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