Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

多次使用redisk-shake进行同步时,list类型的值会被append而不是rewrite #921

Open
hevel opened this issue Jan 21, 2025 · 1 comment

Comments

@hevel
Copy link

hevel commented Jan 21, 2025

如题,这个rewrite https://github.com/tair-opensource/RedisShake/blob/v4/internal/rdb/rdb.go#L205 方法,刚redis的类型为list时,会不是rewrite的行为,而是append

@suxb201
Copy link
Member

suxb201 commented Jan 24, 2025

你要区分 list 类型的 key 是在 rdb 中还是 aof 中。在 aof 中的话只能是 append。
如果你想永远是 rewrite 可以考虑 ScanReader

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants