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
455da35c
Commit
455da35c
authored
Feb 15, 2013
by
antirez
Browse files
Cluster: specific error code for cluster down condition.
parent
522c3255
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/redis.c
View file @
455da35c
...
...
@@ -1662,7 +1662,7 @@ int processCommand(redisClient *c) {
int
hashslot
;
if
(
server
.
cluster
->
state
!=
REDIS_CLUSTER_OK
)
{
addReply
Error
(
c
,
"
The cluster is down.
Check with
CLUSTER INFO for more information
"
);
addReply
Sds
(
c
,
sdsnew
(
"-CLUSTERDOWN
The cluster is down.
Use
CLUSTER INFO for more information
\r\n
"
)
);
return
REDIS_OK
;
}
else
{
int
ask
;
...
...
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