Skip to content

Commit

Permalink
fix comment
Browse files Browse the repository at this point in the history
  • Loading branch information
jerqi committed Apr 12, 2023
1 parent 5fab041 commit d198fb5
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -158,8 +158,8 @@ private int uncompress(CompressedShuffleBlock rawBlock, ByteBuffer rawData) {
unCompressedBytesLength += uncompressedLen;
long decompressDuration = System.currentTimeMillis() - startDecompress;
decompressTime += decompressDuration;
// ByteBuffer's limit may not uncompressDataLength after using compress method.
// So we need set limit here.
// uncompressedData's limit is not updated by `codec.decompress`, however this information is used
// by `createKVIterator`. Update limit here.
uncompressedData.limit(uncompressedData.position() + uncompressedLen);
} else {
uncompressedData = rawData;
Expand Down

0 comments on commit d198fb5

Please sign in to comment.