stickermule / rump

Hot sync two Redis servers using dumps.
MIT License
491 stars 94 forks source link

fixed: error: bufio.Scanner token too long #36

Open idweball opened 4 years ago

idweball commented 4 years ago

Implementation

rump -from ./redis.dump -to redis://127.0.0.1:6379/0

When the above instruction is executed, if a key of redis is too large, it will cause a line to be too long, exceeding bufio. MaxScanTokenSize, causing bufio.Scanner token too long error

This commit is used to fix the above error

shollingsworth commented 3 years ago

Running into this as well. Confirmed @idweball's fix worked after fiddling with the buffer values! thanks :+1: