mirror of
https://github.com/fluencelabs/redis
synced 2025-03-18 16:40:50 +00:00
Add comment explaining negative repeat
This commit is contained in:
parent
2f6ed9333f
commit
2925bdc63b
@ -1141,6 +1141,8 @@ static int cliSendCommand(int argc, char **argv, long repeat) {
|
||||
for (j = 0; j < argc; j++)
|
||||
argvlen[j] = sdslen(argv[j]);
|
||||
|
||||
/* Negative repeat is allowed and causes infinite loop,
|
||||
works well with the interval option. */
|
||||
while(repeat < 0 || repeat-- > 0) {
|
||||
redisAppendCommandArgv(context,argc,(const char**)argv,argvlen);
|
||||
while (config.monitor_mode) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user