Merge pull request #5944 from yossigo/command-filtering

Command Filtering API
This commit is contained in:
Salvatore Sanfilippo
2019-03-22 17:43:49 +01:00
committed by GitHub
9 changed files with 527 additions and 9 deletions

View File

@ -3268,6 +3268,8 @@ void call(client *c, int flags) {
* other operations can be performed by the caller. Otherwise
* if C_ERR is returned the client was destroyed (i.e. after QUIT). */
int processCommand(client *c) {
moduleCallCommandFilters(c);
/* The QUIT command is handled separately. Normal command procs will
* go through checking for replication and QUIT will cause trouble
* when FORCE_REPLICATION is enabled and would be implemented in