Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
ruanhaishen
redis
Commits
94b3ee61
Commit
94b3ee61
authored
Jul 03, 2018
by
antirez
Browse files
Clarify the pending_querybuf field of clients.
parent
549b8b99
Changes
1
Show whitespace changes
Inline
Side-by-side
src/server.h
View file @
94b3ee61
...
@@ -700,9 +700,10 @@ typedef struct client {
...
@@ -700,9 +700,10 @@ typedef struct client {
redisDb *db; /* Pointer to currently SELECTed DB. */
redisDb *db; /* Pointer to currently SELECTed DB. */
robj *name; /* As set by CLIENT SETNAME. */
robj *name; /* As set by CLIENT SETNAME. */
sds querybuf; /* Buffer we use to accumulate client queries. */
sds querybuf; /* Buffer we use to accumulate client queries. */
sds pending_querybuf; /* If this is a master, this buffer represents the
sds pending_querybuf; /* If this client is flagged as master, this buffer
yet not applied replication stream that we
represents the yet not applied portion of the
are receiving from the master. */
replication stream that we are receiving from
the master. */
size_t querybuf_peak; /* Recent (100ms or more) peak of querybuf size. */
size_t querybuf_peak; /* Recent (100ms or more) peak of querybuf size. */
int argc; /* Num of arguments of current command. */
int argc; /* Num of arguments of current command. */
robj **argv; /* Arguments of current command. */
robj **argv; /* Arguments of current command. */
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment