mirror of
https://github.com/seaweedfs/seaweedfs.git
synced 2025-11-24 16:53:14 +08:00
only try to cache chunk manifest chunks
This commit is contained in:
@@ -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);
|
||||||
}
|
}
|
||||||
LOG.debug("chunk {} size {}", chunkView.fileId, chunkData.length);
|
if(chunk.getIsChunkManifest()){
|
||||||
SeaweedRead.chunkCache.setChunk(chunkView.fileId, chunkData);
|
// only cache manifest chunks
|
||||||
|
LOG.debug("chunk {} size {}", chunkView.fileId, chunkData.length);
|
||||||
|
SeaweedRead.chunkCache.setChunk(chunkView.fileId, chunkData);
|
||||||
|
}
|
||||||
|
|
||||||
return chunkData;
|
return chunkData;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user