diff options
| author | Chris Lu <chris.lu@gmail.com> | 2021-07-19 23:18:35 -0700 |
|---|---|---|
| committer | Chris Lu <chris.lu@gmail.com> | 2021-07-19 23:18:35 -0700 |
| commit | 54c8bc867376f54ad0bbe9f4f58767767f9cb650 (patch) | |
| tree | c0ec8ac59812cde64455e80e10985d89e7523a6a /weed/filer/filechunks_test.go | |
| parent | 93c37cfded59b28de0218758f79718a60d1da39f (diff) | |
| parent | 7ab389e7eca179516cdb19ad8b890e53053f2af3 (diff) | |
| download | seaweedfs-54c8bc867376f54ad0bbe9f4f58767767f9cb650.tar.xz seaweedfs-54c8bc867376f54ad0bbe9f4f58767767f9cb650.zip | |
Merge branch 'remote_overlay'
Diffstat (limited to 'weed/filer/filechunks_test.go')
| -rw-r--r-- | weed/filer/filechunks_test.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/weed/filer/filechunks_test.go b/weed/filer/filechunks_test.go index 699e7e298..b0ea20848 100644 --- a/weed/filer/filechunks_test.go +++ b/weed/filer/filechunks_test.go @@ -90,7 +90,7 @@ func TestRandomFileChunksCompact(t *testing.T) { } } - visibles, _ := NonOverlappingVisibleIntervals(nil, chunks) + visibles, _ := NonOverlappingVisibleIntervals(nil, chunks, 0, math.MaxInt64) for _, v := range visibles { for x := v.start; x < v.stop; x++ { @@ -227,7 +227,7 @@ func TestIntervalMerging(t *testing.T) { for i, testcase := range testcases { log.Printf("++++++++++ merged test case %d ++++++++++++++++++++", i) - intervals, _ := NonOverlappingVisibleIntervals(nil, testcase.Chunks) + intervals, _ := NonOverlappingVisibleIntervals(nil, testcase.Chunks, 0, math.MaxInt64) for x, interval := range intervals { log.Printf("test case %d, interval %d, start=%d, stop=%d, fileId=%s", i, x, interval.start, interval.stop, interval.fileId) |
