~maria-captains/maria/5.5-mdev232

Viewing all changes in revision 3451.

  • Committer: knielsen at knielsen-hq
  • Date: 2012-06-21 09:52:54 UTC
  • Revision ID: knielsen@knielsen-hq.org-20120621095254-mg9eg9vqilezno7f
MDEV-359: Server crash when SET GLOBAL rpl_semi_sync_master_enabled = OFF

The semisync code does a fast-but-unsafe check for enabled or not without lock,
followed by a slow-but-safe check under lock. However, if the slow check failed,
the code still referenced not valid data (in an assert() expression), causing a
crash.

Fixed by not running the incorrect assert when semisync is disabled.

expand all expand all

Show diffs side-by-side

added added

removed removed

Lines of Context: