mirror of
https://github.com/fluencelabs/redis
synced 2025-06-25 06:51:32 +00:00
Modules hooks: fix sub event in calls from client change.
This commit is contained in:
@ -828,7 +828,7 @@ void clientAcceptHandler(connection *conn) {
|
|||||||
|
|
||||||
server.stat_numconnections++;
|
server.stat_numconnections++;
|
||||||
moduleFireServerEvent(REDISMODULE_EVENT_CLIENT_CHANGE,
|
moduleFireServerEvent(REDISMODULE_EVENT_CLIENT_CHANGE,
|
||||||
REDISMODULE_SUBEVENT_CLIENT_CHANGE_DISCONNECTED,
|
REDISMODULE_SUBEVENT_CLIENT_CHANGE_CONNECTED,
|
||||||
c);
|
c);
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -1043,6 +1043,9 @@ void freeClient(client *c) {
|
|||||||
freeClientAsync(c);
|
freeClientAsync(c);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
moduleFireServerEvent(REDISMODULE_EVENT_CLIENT_CHANGE,
|
||||||
|
REDISMODULE_SUBEVENT_CLIENT_CHANGE_DISCONNECTED,
|
||||||
|
c);
|
||||||
|
|
||||||
/* If it is our master that's beging disconnected we should make sure
|
/* If it is our master that's beging disconnected we should make sure
|
||||||
* to cache the state to try a partial resynchronization later.
|
* to cache the state to try a partial resynchronization later.
|
||||||
|
Reference in New Issue
Block a user