mirror of
https://github.com/seaweedfs/seaweedfs.git
synced 2025-09-24 20:05:03 +08:00
Revert "Revert "Merge branch 'master' of https://github.com/seaweedfs/seaweedfs""
This reverts commit 8cb42c39
This commit is contained in:
@@ -32,8 +32,8 @@ func NewOnDiskCacheLayer(dir, namePrefix string, diskSize int64, segmentCount in
|
||||
}
|
||||
|
||||
// keep newest cache to the front
|
||||
slices.SortFunc(c.diskCaches, func(a, b *ChunkCacheVolume) bool {
|
||||
return a.lastModTime.After(b.lastModTime)
|
||||
slices.SortFunc(c.diskCaches, func(a, b *ChunkCacheVolume) int {
|
||||
return b.lastModTime.Compare(a.lastModTime)
|
||||
})
|
||||
return c
|
||||
}
|
||||
|
Reference in New Issue
Block a user