diff options
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) } } |
