Skip to content

Commit 6c46122

Browse files
committed
change inode number in ListSlices from 0 to 1
1 parent 056fda5 commit 6c46122

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

pkg/meta/redis.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2605,7 +2605,7 @@ func (r *redisMeta) ListSlices(ctx Context, slices map[Ino][]Slice, delete bool,
26052605
showProgress()
26062606
}
26072607
}
2608-
slices[0] = append(slices[0], ss...)
2608+
slices[1] = append(slices[1], ss...)
26092609
}
26102610
return nil
26112611
})

pkg/meta/sql.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2245,7 +2245,7 @@ func (m *dbMeta) ListSlices(ctx Context, slices map[Ino][]Slice, delete bool, sh
22452245
showProgress()
22462246
}
22472247
}
2248-
slices[0] = append(slices[0], ss...)
2248+
slices[1] = append(slices[1], ss...)
22492249
}
22502250
}
22512251
_ = rows2.Close()

pkg/meta/tkv.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2006,7 +2006,7 @@ func (m *kvMeta) ListSlices(ctx Context, slices map[Ino][]Slice, delete bool, sh
20062006
showProgress()
20072007
}
20082008
}
2009-
slices[0] = append(slices[0], ss...)
2009+
slices[1] = append(slices[1], ss...)
20102010
}
20112011
return 0
20122012
}

0 commit comments

Comments
 (0)