Browse Source

only try to cache chunk manifest chunks

pull/1507/head
Chris Lu 4 years ago
parent
commit
9981748498
  1. 7
      other/java/client/src/main/java/seaweedfs/client/FileChunkManifest.java

7
other/java/client/src/main/java/seaweedfs/client/FileChunkManifest.java

@ -76,8 +76,11 @@ public class FileChunkManifest {
LOG.debug("doFetchFullChunkData:{}", chunkView);
chunkData = SeaweedRead.doFetchFullChunkData(chunkView, locations);
}
LOG.debug("chunk {} size {}", chunkView.fileId, chunkData.length);
SeaweedRead.chunkCache.setChunk(chunkView.fileId, chunkData);
ifchunk.getIsChunkManifest()){
// only cache manifest chunks
LOG.debug("chunk {} size {}", chunkView.fileId, chunkData.length);
SeaweedRead.chunkCache.setChunk(chunkView.fileId, chunkData);
}
return chunkData;

Loading…
Cancel
Save