|
|
|
@ -55,7 +55,6 @@ public class SeaweedRead { |
|
|
|
// TODO parallel this |
|
|
|
long readCount = 0; |
|
|
|
long startOffset = position; |
|
|
|
try { |
|
|
|
for (ChunkView chunkView : chunkViews) { |
|
|
|
|
|
|
|
if (startOffset < chunkView.logicOffset) { |
|
|
|
@ -82,10 +81,6 @@ public class SeaweedRead { |
|
|
|
startOffset += len; |
|
|
|
|
|
|
|
} |
|
|
|
} catch (Exception e) { |
|
|
|
|
|
|
|
throw e; |
|
|
|
} |
|
|
|
|
|
|
|
// Fix: Calculate the correct limit based on the read position and requested |
|
|
|
// size, |
|
|
|
|