mirror of
https://codeberg.org/redict/redict.git
synced 2025-01-23 08:38:27 -05:00
networking: just move qb_pos instead of sdsrange in processInlineBuffer
This commit is contained in:
parent
e623bd22ba
commit
ef2a95c461
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user