Skip to content

Fix RM_SetModuleOptions flag collision#10284

Merged
oranagra merged 2 commits intoredis:unstablefrom
sundb:module-SignalModifiedKey
Feb 11, 2022
Merged

Fix RM_SetModuleOptions flag collision#10284
oranagra merged 2 commits intoredis:unstablefrom
sundb:module-SignalModifiedKey

Conversation

@sundb
Copy link
Collaborator

@sundb sundb commented Feb 11, 2022

The bug is introduced by #9323. (released in 7.0 RC1)
The define of REDISMODULE_OPTIONS_HANDLE_IO_ERRORS and REDISMODULE_OPTION_NO_IMPLICIT_SIGNAL_MODIFIED have the same value.

This will result in skipping signalModifiedKey() after RM_CloseKey() if the module has set REDISMODULE_OPTIONS_HANDLE_REPL_ASYNC_LOAD option.
The implication is missing WATCH and client side tracking invalidations.

Other changes:

  • add no-implicit-signal-modified to the options in INFO modules

@sundb sundb changed the title Fix duplicate module command options define Fix duplicate module options define Feb 11, 2022
Copy link
Contributor

@zuiderkwast zuiderkwast left a comment

Choose a reason for hiding this comment

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

Good catch!

@oranagra oranagra merged commit 5f0119c into redis:unstable Feb 11, 2022
@oranagra oranagra added the release-notes indication that this issue needs to be mentioned in the release notes label Feb 11, 2022
@sundb sundb deleted the module-SignalModifiedKey branch February 12, 2022 02:17
@oranagra oranagra changed the title Fix duplicate module options define Fix RM_SetModuleOptions flag collision Feb 27, 2022
@oranagra oranagra mentioned this pull request Feb 28, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

release-notes indication that this issue needs to be mentioned in the release notes

Projects

Archived in project

Development

Successfully merging this pull request may close these issues.

3 participants