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

Fix entire db flush when no "only" keys found #15

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

niborg
Copy link

@niborg niborg commented Oct 7, 2022

Resolves bug that would wipe the entire Redis db when an only specification is provided but there are no matching keys in the db. This is achieved by defaulting the only and except arguments to be nil, which signals that they have not been set whereas implementation before was ambiguous. And if only has not been set, then the code knows to use all Redis keys.

Closes #12

Resolves bug that would wipe the entire Redis db when an `only`
specification is provided but there are no matching keys in the db.
This is achieved by defaulting the `only` and `except` arguments to
be `nil`, which signals that they have not been set whereas
implementation before was ambiguous. And if `only` has not been set,
then the code knows to use all Redis keys.
@niborg niborg mentioned this pull request Oct 9, 2022
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.

:only Strategy is Broken
1 participant