-
Notifications
You must be signed in to change notification settings - Fork 990
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
chore: allow rdb version 12 #3860
Conversation
@romange I ignore the OPCODE all together and issue a warning. The important thing is to be able to load The person who reported this does not use cluster and wants to migrate to DF. |
Signed-off-by: kostas <[email protected]>
src/server/rdb_load.cc
Outdated
SET_OR_RETURN(LoadLen(nullptr), slot_size); | ||
[[maybe_unused]] uint64_t expires_slot_size; | ||
SET_OR_RETURN(LoadLen(nullptr), expires_slot_size); | ||
LOG(WARNING) << "Loaded and ignored RDB_OPCODE_SLOT_INFO"; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I believe we dont need to print this warning
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
other than that lgtm
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
sounds good
We currently support rdb files up to version 11. This is a blocker for people who want to migrate to dragonfly with newer versions of the format. As of now, there is only v12 and it only includes the addition of RDB_OPCODE_SLOT_INFO. * adds support to load rdb files up to version 12 * reads and discards with a warning the contents of RDB_OPCODE_SLOT_INFO if found in the rdb file --------- Signed-off-by: kostas <[email protected]>
We currently support rdb files up to version
11
. This is a blocker for people who want to migrate to dragonfly with newer versions of the format. As of now, there is onlyv12
and it only includes the addition ofRDB_OPCODE_SLOT_INFO
. For now this PR:RDB_OPCODE_SLOT_INFO
if found in the rdb fileaddresses: #3859