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: Added a flag to ignore key expiry. #4667

Merged
merged 1 commit into from
Mar 4, 2025
Merged

Conversation

H4R5H1T-007
Copy link
Contributor

@H4R5H1T-007 H4R5H1T-007 commented Feb 27, 2025

Fixes #3858.
Added a new flag --ignore-expiry to ignore key expiry when loading from rdb snapshot.

@H4R5H1T-007 H4R5H1T-007 changed the title feat(rdb_load): Added a flag to ignore key expiry #3858. feat: Added a flag to ignore key expiry. Feb 27, 2025
EXPECT_EQ(ttl2, -1);

// reverting back the changes before next text case run
SetTestFlag("ignore_expiry", "false");
Copy link
Collaborator

Choose a reason for hiding this comment

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

please use absl::FlagSaver fs; for that - see in other tests

@H4R5H1T-007
Copy link
Contributor Author

I have cached the flag into rdb loader object and I have also used flagsaver as mentioned. Is this fine now or do I need to modify anything else?

Copy link
Collaborator

@romange romange left a comment

Choose a reason for hiding this comment

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

look good, some minor comments

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
Added a new flag --rdb_ignore_expiry to ignore key expiry when loading from RDB Snapshot. Also cached this flag into RDBLoader object to reuse it.
@BorysTheDev
Copy link
Contributor

LGTM

Copy link
Collaborator

@romange romange left a comment

Choose a reason for hiding this comment

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

Thank you for your contribution! 🙏🏼

@romange romange enabled auto-merge (squash) March 4, 2025 08:32
@romange romange merged commit b729a26 into dragonflydb:main Mar 4, 2025
10 checks passed
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.

Add argument to dont expire when loading from snapshot
3 participants