Skip to content

Commit

Permalink
meta/tkv: fix kvMeta CopyFileRange #4122 (#4130)
Browse files Browse the repository at this point in the history
  • Loading branch information
fengleng authored Oct 27, 2023
1 parent 86e69e4 commit 74eaf35
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/meta/tkv.go
Original file line number Diff line number Diff line change
Expand Up @@ -2023,7 +2023,7 @@ func (m *kvMeta) CopyFileRange(ctx Context, fin Ino, offIn uint64, fout Ino, off
attr.Ctimensec = uint32(now.Nanosecond())

vals := make(map[string][]byte)
tx.scan(m.chunkKey(fin, uint32(offIn/ChunkSize)), m.chunkKey(fin, uint32(offIn+size/ChunkSize)+1),
tx.scan(m.chunkKey(fin, uint32(offIn/ChunkSize)), m.chunkKey(fin, uint32((offIn+size)/ChunkSize)+1),
false, func(k, v []byte) bool {
vals[string(k)] = v
return true
Expand Down

0 comments on commit 74eaf35

Please sign in to comment.