From fc3203557f1daec075770b179342dd4bea65f998 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 9c3d06d69..14cc59559 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 e91dd9bb5..fc357d144 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,