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,