redis-cli: Use the repetiton prefix after a reconnection.

This commit is contained in:
antirez 2011-05-28 15:25:48 +02:00
parent 4d19e3443c
commit 442c748d84

View 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;