提交 dc5b2749 编写于 作者: D Davies Liu

fix indx overflow

上级 847ec12d
......@@ -1699,7 +1699,7 @@ func (r *redisMeta) deleteChunks(inode Ino, length uint64, tracking string) {
var ctx = Background
var indx uint32
p := r.rdb.Pipeline()
for uint64(indx*ChunkSize) < length {
for uint64(indx)*ChunkSize < length {
var keys []string
for i := 0; uint64(indx)*ChunkSize < length && i < 1000; i++ {
key := r.chunkKey(inode, indx)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册