Do not manipulate read queue directly

Protocol modules should not manupulate the read queue directly,
but always access it via the functions created for that purpose.
This commit is contained in:
Johan Wikman
2017-09-06 11:21:47 +03:00
parent 24044a7376
commit 84300c6d97
3 changed files with 18 additions and 20 deletions

View File

@ -981,8 +981,7 @@ bool read_complete_packet(DCB *dcb, GWBUF **readbuf)
{
/** Store any extra data in the DCB's readqueue */
dcb->dcb_readqueue = gwbuf_append(dcb->dcb_readqueue, localbuf);
dcb_readq_append(dcb, localbuf);
}
}