Skip to content

Commit e925963

Browse files
committed
swap cpkt size and i
1 parent d5b4c64 commit e925963

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

modules/dedup/dedup.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ func sync(ctx context.Context, lds LocalBEDedupStorage, pb ParseBundleFunc, fcp
9090
if ckptSize > oldSize {
9191
klog.V(2).Infof("LocalBEDEdup.sync(): log at size %d, dedup database at size %d, startig to sync", ckptSize, oldSize)
9292
for i := oldSize / 256; i <= ckptSize/256; i++ {
93-
eRaw, err := fb(ctx, ckptSize, i)
93+
eRaw, err := fb(ctx, i, ckptSize)
9494
if err != nil {
9595
if errors.Is(err, os.ErrNotExist) {
9696
return fmt.Errorf("leaf bundle at index %d not found: %v", i, err)

0 commit comments

Comments
 (0)