Skip to content

Commit

Permalink
meta/redis: limit dump pipe size (#5584)
Browse files Browse the repository at this point in the history
Signed-off-by: jiefenghuang <[email protected]>
  • Loading branch information
jiefenghuang authored Feb 6, 2025
1 parent 19fde77 commit 32f1f88
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/meta/redis_bak.go
Original file line number Diff line number Diff line change
Expand Up @@ -169,7 +169,7 @@ func (m *redisMeta) dumpMix(ctx Context, opt *DumpOption, ch chan<- *dumpedResul
for _, key := range keys {
if typ, ok := char2Typ[key[len(m.prefix)]]; ok {
typ2Keys[typ] = append(typ2Keys[typ], key)
if len(typ2Keys[typ]) >= redisBatchSize {
if len(typ2Keys[typ]) >= typ2Limit[typ] {
iPools, sum, keys := pools[typ], sums[typ], typ2Keys[typ]
eg.Go(func() error {
return typ2Handles[typ](ctx, ch, keys, iPools, release, sum)
Expand Down

0 comments on commit 32f1f88

Please sign in to comment.