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 Aug 11, 2023
1 parent d3bbc0c commit 25a63ba
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 @@ -967,7 +967,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 25a63ba

Please sign in to comment.