Repository navigation
Keep the n, o and c keyspace event flags when A is set - #16142
Merged
Merged
Conversation
keyspaceEventsFlagsToString() printed n, o, c and r only when A was not set, but these flags are not part of A. So CONFIG SET notify-keyspace-events KEAn read back as AKE, and CONFIG REWRITE saved AKE, which silently disabled those events after a restart. Print them outside the A branch, like m.
Codex Review SummaryThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
sundb
reviewed
Nov 2, 2026
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## unstable #16142 +/- ##
============================================
+ Coverage 78.16% 78.20% +0.04%
============================================
Files 156 156
Lines 95120 95120
============================================
+ Hits 74354 74393 +39
+ Misses 20766 20727 -39
🚀 New features to boost your workflow:
|
Collaborator
|
Tnx, great catch @pirate329 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
n,oandcare not part ofA, butkeyspaceEventsFlagsToString()only prints them whenAis not set. So:The events still fire at runtime, but
CONFIG REWRITEsaves"AKE", so after a restart new-key, overwritten and type-changed events silently stop.The fix prints these flags outside the
Abranch, the same waymis handled.KEAnnow reads back asAnKE. Added cases to the existing CONFIG GET/SET flags test.Same issue as #1491, where
KandEwere hidden byA. Found while fixing the same bug in Valkey (valkey-io/valkey#5199).