From: antirez Date: Sat, 28 May 2011 13:25:48 +0000 (+0200) Subject: redis-cli: Use the repetiton prefix after a reconnection. X-Git-Url: https://git.saurik.com/redis.git/commitdiff_plain/442c748d841bb3603ba1194527ca9da6a1b3cd21?hp=4d19e3443cc3a36bd51684099152d89e18c45afa redis-cli: Use the repetiton prefix after a reconnection. --- diff --git a/src/redis-cli.c b/src/redis-cli.c index 650eafe3..42f74af8 100644 --- a/src/redis-cli.c +++ b/src/redis-cli.c @@ -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;