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
a0092c0a9d
@ -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