mirror of
https://github.com/fluencelabs/redis
synced 2025-04-02 15:51:05 +00:00
Check that we have connection before enabling pipe mode
This commit is contained in:
parent
b62bdf1c64
commit
e9828cb6f7
@ -1233,7 +1233,7 @@ int main(int argc, char **argv) {
|
|||||||
|
|
||||||
/* Pipe mode */
|
/* Pipe mode */
|
||||||
if (config.pipe_mode) {
|
if (config.pipe_mode) {
|
||||||
cliConnect(0);
|
if (cliConnect(0) == REDIS_ERR) exit(1);
|
||||||
pipeMode();
|
pipeMode();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user