diff options
| author | Chris Lu <chris.lu@gmail.com> | 2020-08-23 00:00:36 -0700 |
|---|---|---|
| committer | Chris Lu <chris.lu@gmail.com> | 2020-08-23 00:00:36 -0700 |
| commit | d60bcbf08ab11c75ffcba93be586ef9e42ccdc40 (patch) | |
| tree | 8debec4268d01dccbe96ac44533d74b074c62775 /weed/filer2/filechunks.go | |
| parent | 5e6b714836a365852378c117e48d6228ce925538 (diff) | |
| download | seaweedfs-d60bcbf08ab11c75ffcba93be586ef9e42ccdc40.tar.xz seaweedfs-d60bcbf08ab11c75ffcba93be586ef9e42ccdc40.zip | |
sorting chunks
Diffstat (limited to 'weed/filer2/filechunks.go')
| -rw-r--r-- | weed/filer2/filechunks.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/weed/filer2/filechunks.go b/weed/filer2/filechunks.go index 1ab6679f9..9ab7ea355 100644 --- a/weed/filer2/filechunks.go +++ b/weed/filer2/filechunks.go @@ -219,7 +219,7 @@ func NonOverlappingVisibleIntervals(lookupFileIdFn LookupFileIdFunctionType, chu chunks, _, err = ResolveChunkManifest(lookupFileIdFn, chunks) sort.Slice(chunks, func(i, j int) bool { - return chunks[i].Mtime < chunks[j].Mtime + return chunks[i].Fid.FileKey < chunks[j].Fid.FileKey }) var newVisibles []VisibleInterval |
