mirror of
https://github.com/fluencelabs/redis
synced 2025-03-16 15:40:49 +00:00
Merge pull request #893 from nparry/fix-redis-cli-rdb
redis-cli --rdb fails if server sends a ping
This commit is contained in:
commit
21b3ff9ba0
@ -958,8 +958,8 @@ unsigned long long sendSync(int fd) {
|
||||
fprintf(stderr,"Error reading bulk length while SYNCing\n");
|
||||
exit(1);
|
||||
}
|
||||
if (*p == '\n') break;
|
||||
p++;
|
||||
if (*p == '\n' && p != buf) break;
|
||||
if (*p != '\n') p++;
|
||||
}
|
||||
*p = '\0';
|
||||
if (buf[0] == '-') {
|
||||
|
Loading…
x
Reference in New Issue
Block a user