mirror of
https://github.com/MariaDB/server.git
synced 2026-04-20 23:35:32 +02:00
MDEV-359: Fix another case where switch-off semisync could cause a race that ended with server crash.
This one was when the code releases and reaquires the lock with pthread_cond_wait() - and semisync is switched off meanwhile.
This commit is contained in:
parent
14b756c739
commit
e7362d457a
2 changed files with 2 additions and 1 deletions
|
|
@ -744,6 +744,7 @@ int ReplSemiSyncMaster::commitTrx(const char* trx_wait_binlog_name,
|
|||
must have been removed from ActiveTranx.
|
||||
*/
|
||||
assert(thd_killed(NULL) ||
|
||||
!getMasterEnabled() ||
|
||||
!active_tranxs_->is_tranx_end_pos(trx_wait_binlog_name,
|
||||
trx_wait_binlog_pos));
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue