mirror of
https://github.com/seaweedfs/seaweedfs.git
synced 2026-10-11 16:57:45 +02:00
Revert "Merge branch 'master' of https://github.com/seaweedfs/seaweedfs"
This reverts commit2e5aa06026, reversing changes made to4d414f54a2.
This commit is contained in:
1 parent
2e5aa06026
commit
8cb42c39ad
26 files changed
+123
-235
No files matched your search
@@ -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) int {
|
||||
return b.lastModTime.Compare(a.lastModTime)
|
||||
slices.SortFunc(c.diskCaches, func(a, b *ChunkCacheVolume) bool {
|
||||
return a.lastModTime.After(b.lastModTime)
|
||||
})
|
||||
return c
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user