]> git.saurik.com Git - redis.git/commitdiff
redis-cli: Use the repetiton prefix after a reconnection.
authorantirez <antirez@gmail.com>
Sat, 28 May 2011 13:25:48 +0000 (15:25 +0200)
committerantirez <antirez@gmail.com>
Sat, 28 May 2011 13:25:48 +0000 (15:25 +0200)
src/redis-cli.c

index 650eafe38b037c9e10c026e1f01d4a642eb9df3c..42f74af84595a62da6b9cf35046c52b9e66ec243 100644 (file)
@@ -696,7 +696,8 @@ static void repl() {
 
                         /* If we still cannot send the command print error.
                          * We'll try to reconnect the next time. */
-                        if (cliSendCommand(argc,argv,1) != REDIS_OK)
+                        if (cliSendCommand(argc-skipargs,argv+skipargs,repeat)
+                            != REDIS_OK)
                             cliPrintContextError();
                     }
                     elapsed = mstime()-start_time;