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
28fb193c
Commit
28fb193c
authored
Nov 09, 2015
by
antirez
Browse files
Fix error reply in subscribed Pub/Sub mode.
PING is now a valid command to issue in this context.
parent
c5f9f199
Changes
1
Show whitespace changes
Inline
Side-by-side
src/redis.c
View file @
28fb193c
...
...
@@ -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
;
}
...
...
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