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 <rvkhatri@amazon.com>
This commit is contained in:
Roshan Khatri 2024-04-10 17:35:08 -07:00 committed by GitHub
parent b669af0eab
commit f4f1bd6fde
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 2 additions and 2 deletions

View File

@ -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

View File

@ -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,