HDFS-16970. EC: client copy wrong buffer from decode ouput during pread

This commit is contained in:
musk.luo 2023-04-03 03:52:47 +08:00
parent 811441d5bc
commit c12bb0d649
1 changed files with 1 additions and 0 deletions

View File

@ -915,6 +915,7 @@ public class StripedBlockUtil {
ByteBuffer tmp;
int len;
for (ByteBuffer slice : slices) {
src.position(src.position() + slice.position());
len = slice.remaining();
tmp = src.duplicate();
tmp.limit(tmp.position() + len);