Skip to content

Commit 2de78a7

Browse files
committed
fix bug where dedup list to IoctlFileDedupeRange would be duplicated with garbage
Fixes #10
1 parent 4b440cf commit 2de78a7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: main.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -357,7 +357,7 @@ func dedup(backoff chan struct{}, length uint64, paths ...string) {
357357

358358
filesAreReady.Wait()
359359

360-
valid := dedups[:]
360+
valid := dedups[:0]
361361
for _, d := range dedups {
362362
if d.Dest_fd == 0 {
363363
continue

0 commit comments

Comments
 (0)