Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
ruanhaishen
redis
Commits
94c50314
Commit
94c50314
authored
Oct 22, 2019
by
antirez
Browse files
Modules hooks: fix sub event in calls from client change.
parent
019ac37e
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/networking.c
View file @
94c50314
...
...
@@ -828,7 +828,7 @@ void clientAcceptHandler(connection *conn) {
server
.
stat_numconnections
++
;
moduleFireServerEvent
(
REDISMODULE_EVENT_CLIENT_CHANGE
,
REDISMODULE_SUBEVENT_CLIENT_CHANGE_
DIS
CONNECTED
,
REDISMODULE_SUBEVENT_CLIENT_CHANGE_CONNECTED
,
c
);
}
...
...
@@ -1043,6 +1043,9 @@ void freeClient(client *c) {
freeClientAsync
(
c
);
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
* to cache the state to try a partial resynchronization later.
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment