Commit 5ecaf52d authored by Jan Lindström's avatar Jan Lindström

MDEV-24873 : galera.galera_as_slave_ctas MTR failed: Assertion...

MDEV-24873 : galera.galera_as_slave_ctas MTR failed: Assertion `(&(&LOCK_thd_data)->m_mutex)->count > 0 && pthread_equal(pthread_self(), (&(&LOCK_thd_data)->m_mutex)->thread)' failed in sql_class.cc on THD::awake(killed_state)

Problem was that thd::awake assumes now that you hold THD::LOCK_thd_data
so we need to keep it when we call wsrep_thd_awake from
wsrep_abort_transaction.
parent 45e33e05
...@@ -19776,8 +19776,8 @@ wsrep_abort_transaction( ...@@ -19776,8 +19776,8 @@ wsrep_abort_transaction(
WSREP_DEBUG("victim does not have transaction"); WSREP_DEBUG("victim does not have transaction");
wsrep_thd_LOCK(victim_thd); wsrep_thd_LOCK(victim_thd);
wsrep_thd_set_conflict_state(victim_thd, MUST_ABORT); wsrep_thd_set_conflict_state(victim_thd, MUST_ABORT);
wsrep_thd_UNLOCK(victim_thd);
wsrep_thd_awake(victim_thd, signal); wsrep_thd_awake(victim_thd, signal);
wsrep_thd_UNLOCK(victim_thd);
} }
DBUG_VOID_RETURN; DBUG_VOID_RETURN;
......
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