mirror of
https://github.com/fluencelabs/redis
synced 2025-03-30 22:31:03 +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
cd8f19e9ca
commit
111d24f246
@ -2414,7 +2414,7 @@ int processCommand(client *c) {
|
|||||||
c->cmd->proc != unsubscribeCommand &&
|
c->cmd->proc != unsubscribeCommand &&
|
||||||
c->cmd->proc != psubscribeCommand &&
|
c->cmd->proc != psubscribeCommand &&
|
||||||
c->cmd->proc != punsubscribeCommand) {
|
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 C_OK;
|
return C_OK;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user