Don't build a reply when replaying the AOF

This commit is contained in:
Pieter Noordhuis
2010-08-30 16:51:39 +02:00
parent b301c1fc2b
commit 57b0738011
2 changed files with 6 additions and 3 deletions

View File

@ -62,6 +62,7 @@ redisClient *createClient(int fd) {
}
int _ensureFileEvent(redisClient *c) {
if (c->fd <= 0) return REDIS_ERR;
if (c->bufpos == 0 && listLength(c->reply) == 0 &&
(c->replstate == REDIS_REPL_NONE ||
c->replstate == REDIS_REPL_ONLINE) &&