HDFS-16970. EC: client copy wrong buffer from decode ouput during pread
This commit is contained in:
parent
811441d5bc
commit
c12bb0d649
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue