mariadb/plugin
Sujatha Sivakumar cc4043f013 Bug#17327454:SEMI-SYNC REPLICATION MASTER CRASH WHEN SET
RPL_SEMI_SYNC_MASTER_ENABLED OFF.

Problem:
=======
If master is waiting for a reply from slave, at this time
set global rpl_semi_sync_master_enabled=OFF, the master
server will crash.

Analysis:
========
When master is waiting for a reply from slave, at this time
if semi sync is switched off on master, during switch off if
active transactions are present the transactions will be
cleared and "active_tranxs_" variable will be set to NULL.

When the waiting master connection finds that semi sync is
switched of it tries to access "active_tranxs_" without
checking if the transaction list exists or not. Accessing
NULL transaction list causes the crash.

Fix:
===
A check has been added to see a valid list exists before
accessing the "active_tranxs_".

plugin/semisync/semisync_master.cc:
  Added check for the existence of valid 'active_transx_'.
2013-09-23 12:13:37 +05:30
..
audit_null Merging into mysql-5.5.16-release. 2011-08-15 20:12:11 +02:00
auth Updated/added copyright headers 2012-02-16 10:48:16 +01:00
daemon_example Updated/added copyright headers 2012-02-16 10:48:16 +01:00
fulltext Merging into mysql-5.5.16-release. 2011-08-15 20:12:11 +02:00
semisync Bug#17327454:SEMI-SYNC REPLICATION MASTER CRASH WHEN SET 2013-09-23 12:13:37 +05:30