1
0
mirror of https://github.com/MariaDB/server.git synced 2025-08-09 22:24:09 +03:00

Fixed issue with retrying autocommitted transactions. We might need to

clean up the explain structure in this case.
This commit is contained in:
Jan Lindström
2014-01-20 12:17:31 +02:00
parent caa1b783bd
commit d0f77b8361

View File

@@ -6788,6 +6788,11 @@ static void wsrep_mysql_parse(THD *thd, char *rawbuf, uint length,
}
mysql_mutex_unlock(&thd->LOCK_wsrep_thd);
}
/* If retry is requested clean up explain structure */
if (thd->wsrep_conflict_state == RETRY_AUTOCOMMIT && thd->lex->explain)
delete_explain_query(thd->lex);
} while (thd->wsrep_conflict_state== RETRY_AUTOCOMMIT);
if (thd->wsrep_retry_query)