Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
ruanhaishen
redis
Commits
442c748d
Commit
442c748d
authored
May 28, 2011
by
antirez
Browse files
redis-cli: Use the repetiton prefix after a reconnection.
parent
4d19e344
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/redis-cli.c
View file @
442c748d
...
@@ -696,7 +696,8 @@ static void repl() {
...
@@ -696,7 +696,8 @@ static void repl() {
/* If we still cannot send the command print error.
/* If we still cannot send the command print error.
* We'll try to reconnect the next time. */
* 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
();
cliPrintContextError
();
}
}
elapsed
=
mstime
()
-
start_time
;
elapsed
=
mstime
()
-
start_time
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment