From f4f1bd6fde4ce1c03e14e11db87b2512cc9f5c75 Mon Sep 17 00:00:00 2001 From: Roshan Khatri <117414976+roshkhatri@users.noreply.github.com> Date: Wed, 10 Apr 2024 17:35:08 -0700 Subject: [PATCH] Revert update of RedisModuleEvent_MasterLinkChange (#289) ValkeyModuleEvent_MasterLinkChange was updated to use more inclusive language, but it was done in the compatibility layer as well (RedisModuleEvent_). --------- Signed-off-by: Roshan Khatri --- src/redismodule.h | 2 +- tests/modules/hooks.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/redismodule.h b/src/redismodule.h index 9c3d06d69d..14cc595598 100644 --- a/src/redismodule.h +++ b/src/redismodule.h @@ -712,7 +712,7 @@ #define RedisModuleEvent_Shutdown ValkeyModuleEvent_Shutdown #define RedisModuleEvent_ReplicaChange ValkeyModuleEvent_ReplicaChange #define RedisModuleEvent_CronLoop ValkeyModuleEvent_CronLoop -#define RedisModuleEvent_PrimaryLinkChange ValkeyModuleEvent_PrimaryLinkChange +#define RedisModuleEvent_MasterLinkChange ValkeyModuleEvent_PrimaryLinkChange #define RedisModuleEvent_ModuleChange ValkeyModuleEvent_ModuleChange #define RedisModuleEvent_LoadingProgress ValkeyModuleEvent_LoadingProgress #define RedisModuleEvent_SwapDB ValkeyModuleEvent_SwapDB diff --git a/tests/modules/hooks.c b/tests/modules/hooks.c index 24449d0d34..a1f5f536b0 100644 --- a/tests/modules/hooks.c +++ b/tests/modules/hooks.c @@ -422,7 +422,7 @@ int RedisModule_OnLoad(RedisModuleCtx *ctx, RedisModuleString **argv, int argc) RedisModule_SubscribeToServerEvent(ctx, RedisModuleEvent_ReplicaChange, replicationChangeCallback); RedisModule_SubscribeToServerEvent(ctx, - RedisModuleEvent_PrimaryLinkChange, rasterLinkChangeCallback); + RedisModuleEvent_MasterLinkChange, rasterLinkChangeCallback); /* persistence related hooks */ RedisModule_SubscribeToServerEvent(ctx,