Track the length of the client pending output buffers (still to transfer) in a new field in the client structure.

This commit is contained in:
antirez
2011-12-25 16:32:54 +01:00
parent f7ccc4830b
commit 3853c16839
3 changed files with 31 additions and 1 deletions

View File

@ -295,6 +295,7 @@ struct redisClient *createFakeClient(void) {
* so that Redis will not try to send replies to this client. */
c->replstate = REDIS_REPL_WAIT_BGSAVE_START;
c->reply = listCreate();
c->reply_bytes = 0;
c->watched_keys = listCreate();
listSetFreeMethod(c->reply,decrRefCount);
listSetDupMethod(c->reply,dupClientReplyValue);