Skip to content

Commit

Permalink
Revert update of RedisModuleEvent_MasterLinkChange (#289)
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
roshkhatri authored Apr 11, 2024
1 parent b669af0 commit f4f1bd6
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/redismodule.h
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion tests/modules/hooks.c
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit f4f1bd6

Please sign in to comment.