Skip to content

Commit

Permalink
meta: change scan threshold to 640G in redis truncate (#3989)
Browse files Browse the repository at this point in the history
Signed-off-by: xixi <[email protected]>
  • Loading branch information
Hexilee authored and SandyXSD committed Aug 31, 2023
1 parent 41aaa92 commit 8445ea6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/meta/redis.go
Original file line number Diff line number Diff line change
Expand Up @@ -832,7 +832,7 @@ func (m *redisMeta) Truncate(ctx Context, inode Ino, flags uint8, length uint64,
if left > right {
right, left = left, right
}
if (right-left)/ChunkSize >= 100 {
if (right-left)/ChunkSize >= 10000 {
// super large
var cursor uint64
var keys []string
Expand Down

0 comments on commit 8445ea6

Please sign in to comment.