mirror of
https://github.com/seaweedfs/seaweedfs.git
synced 2024-01-19 02:48:24 +00:00
only try to cache chunk manifest chunks
This commit is contained in:
parent
0ed1f43d29
commit
9981748498
|
@ -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);
|
||||||
}
|
}
|
||||||
|
if(chunk.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…
Reference in a new issue