assigns the target server before gwbuf_append()

This commit is contained in:
Dong Young Yoon
2016-12-17 15:49:24 -05:00
committed by Markus Mäkelä
parent cc2ce089c6
commit 5d1b94de88

View File

@ -877,10 +877,10 @@ int dcb_read(DCB *dcb,
STRDCBSTATE(dcb->state),
dcb->fd);
/* </editor-fold> */
/*< Append read data to the gwbuf */
*head = gwbuf_append(*head, buffer);
/*< Assign the target server for the gwbuf */
buffer->server = dcb->server;
/*< Append read data to the gwbuf */
*head = gwbuf_append(*head, buffer);
}
else
{