Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
ruanhaishen
redis
Commits
656e4b2f
Commit
656e4b2f
authored
Aug 14, 2018
by
zhaozhao.zz
Committed by
antirez
Aug 29, 2018
Browse files
networking: just move qb_pos instead of sdsrange in processInlineBuffer
parent
2c7972ce
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/networking.c
View file @
656e4b2f
...
...
@@ -1152,9 +1152,8 @@ int processInlineBuffer(client *c) {
if (querylen == 0 && c->flags & CLIENT_SLAVE)
c->repl_ack_time = server.unixtime;
/* Leave data after the first line of the query in the buffer */
sdsrange(c->querybuf,c->qb_pos+querylen+linefeed_chars,-1);
c->qb_pos = 0;
/* Move querybuffer position to the next query in the buffer. */
c->qb_pos += querylen+linefeed_chars;
/* Setup argv array on client structure */
if (argc) {
...
...
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