mirror of
https://github.com/seaweedfs/seaweedfs.git
synced 2026-10-20 21:14:25 +02:00
re-enable caching larger than 16MB
revert https://github.com/chrislusf/seaweedfs/commit/62ce85610e2fcd08488ee6026266e617509f6d46
This commit is contained in:
1 parent
2c20ef72ae
commit
707936f482
1 file changed
+2
-2
@@ -76,7 +76,7 @@ func (c *TieredChunkCache) doGetChunk(fileId string, minSize uint64) (data []byt
|
||||
return data
|
||||
}
|
||||
}
|
||||
if minSize <= c.onDiskCacheSizeLimit2 {
|
||||
{
|
||||
data = c.diskCaches[2].getChunk(fid.Key)
|
||||
if len(data) >= int(minSize) {
|
||||
return data
|
||||
@@ -115,7 +115,7 @@ func (c *TieredChunkCache) doSetChunk(fileId string, data []byte) {
|
||||
c.diskCaches[0].setChunk(fid.Key, data)
|
||||
} else if len(data) <= int(c.onDiskCacheSizeLimit1) {
|
||||
c.diskCaches[1].setChunk(fid.Key, data)
|
||||
} else if len(data) <= int(c.onDiskCacheSizeLimit2) {
|
||||
} else {
|
||||
c.diskCaches[2].setChunk(fid.Key, data)
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user