Browse Source

only try to cache chunk manifest chunks

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

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

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

Loading…
Cancel
Save