Merge branch 'develop' into 1.2.1-binlog_router_trx

This commit is contained in:
MassimilianoPinto
2015-08-21 16:35:37 +02:00
3 changed files with 12 additions and 1 deletions

View File

@ -383,6 +383,16 @@ int n_connect = 0;
static int
httpd_close(DCB *dcb)
{
if(dcb->dcb_readqueue)
{
while((dcb->dcb_readqueue = GWBUF_CONSUME_ALL(dcb->dcb_readqueue)));
}
if(dcb->writeq)
{
while((dcb->writeq = GWBUF_CONSUME_ALL(dcb->writeq)));
}
return 0;
}