From 442c748d841bb3603ba1194527ca9da6a1b3cd21 Mon Sep 17 00:00:00 2001 From: antirez Date: Sat, 28 May 2011 15:25:48 +0200 Subject: [PATCH 1/1] redis-cli: Use the repetiton prefix after a reconnection. --- src/redis-cli.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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; -- 2.45.2