diff options
| author | Chris Lu <chris.lu@gmail.com> | 2018-11-21 16:25:13 -0800 |
|---|---|---|
| committer | Chris Lu <chris.lu@gmail.com> | 2018-11-21 16:25:13 -0800 |
| commit | e5ad2223a1545354b3b658b799aff7abda3a585b (patch) | |
| tree | 456f1cff9e95a5e7af27bda5e244a0b29d7f40cc /weed/filer2/filechunks.go | |
| parent | c9b3ef58dea146e8a39a6c78c0aba4354c1d3d08 (diff) | |
| download | seaweedfs-e5ad2223a1545354b3b658b799aff7abda3a585b.tar.xz seaweedfs-e5ad2223a1545354b3b658b799aff7abda3a585b.zip | |
add missing intervals
fix https://github.com/chrislusf/seaweedfs/issues/774
Diffstat (limited to 'weed/filer2/filechunks.go')
| -rw-r--r-- | weed/filer2/filechunks.go | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/weed/filer2/filechunks.go b/weed/filer2/filechunks.go index 538d10afa..3d540cc84 100644 --- a/weed/filer2/filechunks.go +++ b/weed/filer2/filechunks.go @@ -127,6 +127,7 @@ func mergeIntoVisibles(visibles, newVisibles []*visibleInterval, chunk *filer_pb return append(visibles, newV) } + logPrintf(" before", visibles) for _, v := range visibles { if v.start < chunk.Offset && chunk.Offset < v.stop { newVisibles = append(newVisibles, newVisibleInterval( @@ -145,7 +146,7 @@ func mergeIntoVisibles(visibles, newVisibles []*visibleInterval, chunk *filer_pb v.modifiedTime, )) } - if chunkStop < v.start || v.stop <= chunk.Offset { + if chunkStop <= v.start || v.stop <= chunk.Offset { newVisibles = append(newVisibles, v) } } |
