Skip to content

Commit

Permalink
Remove ValkeyModuleEvent_MasterLinkChange
Browse files Browse the repository at this point in the history
  • Loading branch information
9bany committed Apr 8, 2024
1 parent 6411629 commit 55a33d4
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 17 deletions.
12 changes: 0 additions & 12 deletions src/module.c
Original file line number Diff line number Diff line change
Expand Up @@ -11511,18 +11511,6 @@ static uint64_t moduleEventVersions[] = {
*
* int32_t hz; // Approximate number of events per second.
*
* * ValkeyModuleEvent_MasterLinkChange
*
* This is called for replicas in order to notify when the
* replication link becomes functional (up) with our master,
* or when it goes down. Note that the link is not considered
* up when we just connected to the master, but only if the
* replication is happening correctly.
* The following sub events are available:
*
* * `VALKEYMODULE_SUBEVENT_PRIMARY_LINK_UP`
* * `VALKEYMODULE_SUBEVENT_PRIMARY_LINK_DOWN`
*
* * ValkeyModuleEvent_ModuleChange
*
* This event is called when a new module is loaded or one is unloaded.
Expand Down
1 change: 0 additions & 1 deletion src/redismodule.h
Original file line number Diff line number Diff line change
Expand Up @@ -712,7 +712,6 @@
#define RedisModuleEvent_Shutdown ValkeyModuleEvent_Shutdown
#define RedisModuleEvent_ReplicaChange ValkeyModuleEvent_ReplicaChange
#define RedisModuleEvent_CronLoop ValkeyModuleEvent_CronLoop
#define RedisModuleEvent_MasterLinkChange ValkeyModuleEvent_MasterLinkChange
#define RedisModuleEvent_ModuleChange ValkeyModuleEvent_ModuleChange
#define RedisModuleEvent_LoadingProgress ValkeyModuleEvent_LoadingProgress
#define RedisModuleEvent_SwapDB ValkeyModuleEvent_SwapDB
Expand Down
4 changes: 0 additions & 4 deletions src/valkeymodule.h
Original file line number Diff line number Diff line change
Expand Up @@ -583,10 +583,6 @@ static const ValkeyModuleEvent
VALKEYMODULE_EVENT_CRON_LOOP,
1
},
ValkeyModuleEvent_MasterLinkChange = {
VALKEYMODULE_EVENT_PRIMARY_LINK_CHANGE,
1
},
ValkeyModuleEvent_ModuleChange = {
VALKEYMODULE_EVENT_MODULE_CHANGE,
1
Expand Down

0 comments on commit 55a33d4

Please # to comment.