-
Notifications
You must be signed in to change notification settings - Fork 1k
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
Conversation
src/server/rdb_test.cc
Outdated
EXPECT_EQ(ttl2, -1); | ||
|
||
// reverting back the changes before next text case run | ||
SetTestFlag("ignore_expiry", "false"); |
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.
please use absl::FlagSaver fs;
for that - see in other tests
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? |
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.
look good, some minor comments
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.
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.
Thank you for your contribution! 🙏🏼
Fixes #3858.
Added a new flag
--ignore-expiry
to ignore key expiry when loading from rdb snapshot.