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

@ -401,7 +401,7 @@ char *server_string;
" MySQL Version: %s",version_str); " MySQL Version: %s",version_str);
return; return;
} }
while ((row = mysql_fetch_row(result))) while ((row = mysql_fetch_row(result2)))
{ {
if (strncmp(row[1], "xtrabackup", 10) == 0) if (strncmp(row[1], "xtrabackup", 10) == 0)
isjoined = 1; isjoined = 1;

View File

@ -383,6 +383,16 @@ int n_connect = 0;
static int static int
httpd_close(DCB *dcb) 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; return 0;
} }

View File

@ -746,6 +746,7 @@ RESULTSET *set;
resultset_free(set); resultset_free(set);
} }
} }
gwbuf_free(queue);
return 1; return 1;
} }