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

feat(server): save dragonfly snapshot in a new format by default #802

Merged
merged 1 commit into from
Feb 15, 2023
Merged

Conversation

romange
Copy link
Collaborator

@romange romange commented Feb 14, 2023

Introduce a new flag df_snapshot_format that controls the default behavior. The flag itself is defaulted to save snapshots in a new Dragonfly specific format.

BREAKING CHANGE: before that Dragonfly saved snapshots in rdb format by default. Now the flag controls which format is chosen when issuing SAVE/BGSAVE commands. In addition, "SAVE DF", "SAVE RDB" can be used to save using dragonfly/redis formats accordingly.

Signed-off-by: Roman Gershman roman@dragonflydb.io

Introduce a new flag `df_snapshot_format` that controls the default behavior.
The flag itself is defaulted to save snapshots in a new Dragonfly
specific format.

BREAKING CHANGE: before that Dragonfly saved snapshots in rdb format by default.
Now the flag controls which format is chosen when issuing SAVE/BGSAVE commands.
In addition, "SAVE DF", "SAVE RDB" can be used to save using dragonfly/redis formats
accordingly.

Signed-off-by: Roman Gershman <roman@dragonflydb.io>
@romange romange requested a review from dranikpg February 14, 2023 16:33
Comment on lines +59 to +60
ABSL_FLAG(bool, df_snapshot_format, true,
"if true, save in dragonfly-specific snapshotting format");
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

the name is a bit misleading for a bool flag if you interpret df_ as a prefix, not the type of the format

@romange
Copy link
Collaborator Author

romange commented Feb 14, 2023 via email

@dranikpg
Copy link
Contributor

Maybe enable_df_format... I also not against keeping the current one

@romange romange merged commit 8068e1a into main Feb 15, 2023
@romange romange deleted the Pr2 branch February 15, 2023 04:19
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

Successfully merging this pull request may close these issues.

2 participants