Use the QUICKLIST encoding to dump the list payload to compatible with Redis >= 4#2277
Use the QUICKLIST encoding to dump the list payload to compatible with Redis >= 4#2277git-hulk merged 17 commits intoapache:unstablefrom AntiTopQuark:unstable
Conversation
|
Could you write some test cases for your patch? Thank you! |
Here I just changed a coding method. The previous tests can still be used. I have now added some corner cases. |
Generally, if we fixed a bug in a patch, we need to add a test case, that should fail without the patch, and succeed after the patch is applied. |
|
@AntiTopQuark Thanks for your efforts. |
|
I can confirm it also works in Redis 4: |
mapleFU
left a comment
There was a problem hiding this comment.
General LGTM. Remaining problems are about code styles
|
I didn't dive into logics of RDB carefully, generally this LGTM |
|
@AntiTopQuark Need to reformat codes. |
|




Close #2253
In order to support the compatibility of old versions of redis,
when using the dump command,
QUICKLISTencoding is used instead ofQUICKLIST2for LIST encoding.