Commit d0f77b83 authored by Jan Lindström's avatar Jan Lindström

Fixed issue with retrying autocommitted transactions. We might need to

clean up the explain structure in this case.
parent caa1b783
...@@ -6788,6 +6788,11 @@ static void wsrep_mysql_parse(THD *thd, char *rawbuf, uint length, ...@@ -6788,6 +6788,11 @@ static void wsrep_mysql_parse(THD *thd, char *rawbuf, uint length,
} }
mysql_mutex_unlock(&thd->LOCK_wsrep_thd); 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); } while (thd->wsrep_conflict_state== RETRY_AUTOCOMMIT);
if (thd->wsrep_retry_query) if (thd->wsrep_retry_query)
......
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