Browse Source

minor

pull/1507/head
Chris Lu 4 years ago
parent
commit
b684c312d2
  1. 3
      other/java/client/src/main/java/seaweedfs/client/SeaweedRead.java

3
other/java/client/src/main/java/seaweedfs/client/SeaweedRead.java

@ -62,6 +62,7 @@ public class SeaweedRead {
if (chunkData == null) {
chunkData = doFetchFullChunkData(chunkView, locations);
chunkCache.setChunk(chunkView.fileId, chunkData);
}
int len = (int) chunkView.size;
@ -69,8 +70,6 @@ public class SeaweedRead {
chunkView.fileId, chunkData.length, chunkView.offset, buffer.length, startOffset, len);
System.arraycopy(chunkData, (int) chunkView.offset, buffer, startOffset, len);
chunkCache.setChunk(chunkView.fileId, chunkData);
return len;
}

Loading…
Cancel
Save