summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorantirez <antirez@gmail.com>2018-07-03 13:25:41 +0200
committerantirez <antirez@gmail.com>2018-07-03 13:25:41 +0200
commit94b3ee61420f8638d9cdba32877864deef91d5e9 (patch)
treed40e581377dd6621908a86cfbae3c7ffce02ba19
parent549b8b99733e49d2464666a22da8b56b1d9a3b52 (diff)
downloadredis-94b3ee61420f8638d9cdba32877864deef91d5e9.tar.gz
Clarify the pending_querybuf field of clients.
-rw-r--r--src/server.h7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/server.h b/src/server.h
index 063651bd6..c60cadfc1 100644
--- a/src/server.h
+++ b/src/server.h
@@ -700,9 +700,10 @@ typedef struct client {
redisDb *db; /* Pointer to currently SELECTed DB. */
robj *name; /* As set by CLIENT SETNAME. */
sds querybuf; /* Buffer we use to accumulate client queries. */
- sds pending_querybuf; /* If this is a master, this buffer represents the
- yet not applied replication stream that we
- are receiving from the master. */
+ sds pending_querybuf; /* If this client is flagged as master, this buffer
+ represents the yet not applied portion of the
+ replication stream that we are receiving from
+ the master. */
size_t querybuf_peak; /* Recent (100ms or more) peak of querybuf size. */
int argc; /* Num of arguments of current command. */
robj **argv; /* Arguments of current command. */