merging fix

parent 4d235598
......@@ -1907,7 +1907,7 @@ int close_connection(struct st_query *q)
#ifndef EMBEDDED_LIBRARY
if (q->type == Q_DIRTY_CLOSE)
{
while (con->mysql.net.vio)
if (con->mysql.net.vio)
{
vio_delete(con->mysql.net.vio);
con->mysql.net.vio = 0;
......@@ -2908,7 +2908,7 @@ static int run_query_normal(struct connection *cn, struct st_query* q,
else if (flags & QUERY_REAP)
{
pthread_mutex_lock(&cn->mutex);
if (!cn->query_done)
while (!cn->query_done)
pthread_cond_wait(&cn->cond, &cn->mutex);
pthread_mutex_unlock(&cn->mutex);
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment