Skip to content

Commit a908d2d

Browse files
committed
Return used buffer to the pool
1 parent 3a1c502 commit a908d2d

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/java/org/apache/cassandra/io/util/EncryptedChunkReader.java

+5
Original file line numberDiff line numberDiff line change
@@ -214,6 +214,11 @@ public void readChunk(long position, ByteBuffer buffer)
214214
{
215215
//TODO how to handle it?
216216
}
217+
218+
if (!encryptor.canDecompressInPlace())
219+
{
220+
BufferPools.forChunkCache().put(input);
221+
}
217222
}
218223

219224
@Override

0 commit comments

Comments
 (0)