mirror of
https://github.com/fluencelabs/redis
synced 2025-04-25 18:42:13 +00:00
Fix error reply in subscribed Pub/Sub mode.
PING is now a valid command to issue in this context.
This commit is contained in:
parent
c5f9f199df
commit
28fb193ccd
@ -2259,7 +2259,7 @@ int processCommand(redisClient *c) {
|
||||
c->cmd->proc != unsubscribeCommand &&
|
||||
c->cmd->proc != psubscribeCommand &&
|
||||
c->cmd->proc != punsubscribeCommand) {
|
||||
addReplyError(c,"only (P)SUBSCRIBE / (P)UNSUBSCRIBE / QUIT allowed in this context");
|
||||
addReplyError(c,"only (P)SUBSCRIBE / (P)UNSUBSCRIBE / PING / QUIT allowed in this context");
|
||||
return REDIS_OK;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user