diff options
| author | Chris Lu <chris.lu@gmail.com> | 2021-07-19 23:07:22 -0700 |
|---|---|---|
| committer | Chris Lu <chris.lu@gmail.com> | 2021-07-19 23:07:22 -0700 |
| commit | 7ab389e7eca179516cdb19ad8b890e53053f2af3 (patch) | |
| tree | 93938f961954f12c1a99a48ca0684ee5db4483e5 /weed/filer/filechunks_test.go | |
| parent | b938df97a25fefecf4144ec29a40e36433faff61 (diff) | |
| download | seaweedfs-7ab389e7eca179516cdb19ad8b890e53053f2af3.tar.xz seaweedfs-7ab389e7eca179516cdb19ad8b890e53053f2af3.zip | |
optimization: improve random range query for large filesorigin/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) |
