[Commits] Rev 3142: LPBUG#882689 - crash during startup on XP. in file:///H:/bzr/5.3/

Vladislav Vaintroub wlad at montyprogram.com
Mon Aug 8 19:01:25 EEST 2011

At file:///H:/bzr/5.3/

revno: 3142
revision-id: wlad at montyprogram.com-20110808160133-n7ylyayc55hc0iti
parent: psergey at askmonty.org-20110805180706-aa76hjdmnfx51kko
fixes bug(s): https://launchpad.net/bugs/822689
committer: Vladislav Vaintroub <wlad at montyprogram.com>
branch nick: 5.3
timestamp: Mon 2011-08-08 18:01:33 +0200
  LPBUG#882689 - crash during startup on XP.
  The reason for the crash is Innodb assertion after trying to load condition variables function
  dynamically and not finding them
  The fix is to skip dynamic loading if srv_use_native_conditions is FALSE. srv_use_native_conditions 
  is derived from Windows version and would be FALSE on XP and TRUE on later Windows.
  This is the same handling as in MySQL 5.. In Maria 5.3 srv_use_native_conditions check was 
  presumably  lost in the downporting.
-------------- next part --------------
=== modified file 'storage/xtradb/os/os0sync.c'
--- a/storage/xtradb/os/os0sync.c	2011-06-04 18:06:01 +0000
+++ b/storage/xtradb/os/os0sync.c	2011-08-08 16:01:33 +0000
@@ -274,6 +274,8 @@
 #ifdef __WIN__
 	HMODULE		h_dll;
+	if (!srv_use_native_conditions)
+		return;
 	h_dll = GetModuleHandle("kernel32");

More information about the commits mailing list