diff options
| author | Chris Lu <chris.lu@gmail.com> | 2024-02-04 09:22:24 -0800 |
|---|---|---|
| committer | Chris Lu <chris.lu@gmail.com> | 2024-02-04 09:22:24 -0800 |
| commit | 56df44845f02d9c1f37e957df1b09fd1a6d9a7fd (patch) | |
| tree | bdf21ce3c1814c4630202220aea47c6feb9eb8e9 /weed/filer/filechunks_read.go | |
| parent | 0b49c163618646927a058b189b03883c6981591e (diff) | |
| download | seaweedfs-56df44845f02d9c1f37e957df1b09fd1a6d9a7fd.tar.xz seaweedfs-56df44845f02d9c1f37e957df1b09fd1a6d9a7fd.zip | |
fix when two consecutive chunks with the same modified_ts_ns
fix https://github.com/seaweedfs/seaweedfs/issues/5276
Diffstat (limited to 'weed/filer/filechunks_read.go')
| -rw-r--r-- | weed/filer/filechunks_read.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/weed/filer/filechunks_read.go b/weed/filer/filechunks_read.go index b8768ed63..11b297a3c 100644 --- a/weed/filer/filechunks_read.go +++ b/weed/filer/filechunks_read.go @@ -38,10 +38,10 @@ func readResolvedChunks(chunks []*filer_pb.FileChunk, startOffset int64, stopOff return int(a.ts - b.ts) } if a.isStart { - return -1 + return 1 } if b.isStart { - return 1 + return -1 } return 0 }) |
