Skip to content

Commit

Permalink
The fix
Browse files Browse the repository at this point in the history
  • Loading branch information
sergiitk committed Jul 14, 2022
1 parent b82a888 commit 7b40bb0
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,7 @@ static void mergeWithCompositeTail(ByteBufAllocator alloc, CompositeByteBuf comp
if (tail.refCnt() == 1 && !tail.isReadOnly() && totalBytes <= tail.maxCapacity()) {
// Ideal case: the tail isn't shared, and can be expanded to the required capacity.
// Take ownership of the tail.
merged = tail.retain();
merged = composite.internalComponent(tailIndex).retainedDuplicate();
/*
* The tail is a readable non-composite buffer, so writeBytes() handles everything for us.
*
Expand Down

0 comments on commit 7b40bb0

Please sign in to comment.