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

module: fix typo in REGISTER_API #608

Merged
merged 1 commit into from
Jun 7, 2024

Conversation

mkmkme
Copy link
Contributor

@mkmkme mkmkme commented Jun 6, 2024

REGISTER_API is supposed to register two functions: one starts with ValkeyModule_ and the other one with RedisModule_. It does so in unstable branch. However there was a copy-paste mistake during backporting it to 7.2. This caused modules built with valkeymodule-rs to fail since they called RedisModule_SetModuleAttribs which caused valkey to segfault.

This commit fixes the typo.

`REGISTER_API` is supposed to register two functions: one starts with
`ValkeyModule_` and the other one with `RedisModule_`. It does so in
`unstable` branch. However there was a copy-paste mistake during
backporting it to 7.2. This caused modules built with `valkeymodule-rs`
to fail since they called `RedisModule_SetModuleAttribs` which caused
valkey to segfault.

This commit fixes the typo.

Signed-off-by: Mikhail Koviazin <[email protected]>
@madolson madolson added the release-notes This issue should get a line item in the release notes label Jun 7, 2024
@PingXie PingXie merged commit 8c2a76f into valkey-io:7.2 Jun 7, 2024
38 of 43 checks passed
@mkmkme mkmkme deleted the mkmkme/fix-register-api branch June 7, 2024 20:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
release-notes This issue should get a line item in the release notes
Projects
Status: Backported
Development

Successfully merging this pull request may close these issues.

4 participants