-
Committer:
Alexey Kopytov
-
Date:
2011-03-16 13:36:52 UTC
-
Revision ID:
akopytov@gmail.com-20110316133652-imrlo1m0jbf1rct1
LP bug #703070: xtrabackup_55 core dumps on FreeBSD
xtrabackup_55 crashed with an assertion failure on non-Linux platforms.
fil_aio_wait() asserts srv_use_native_aio can only be set to TRUE on
platforms where native AIO is supported (i.e. Windows or Linux).
On 5.5 srv_use_native_aio is TRUE by default and reset
by innobase_start_or_create_for_mysql() for non-Linux/Windows platforms.
The problem is that xtrabackup does not call that function, therefore
srv_use_native_aio is always TRUE.
The fix is to duplicate the checks from
innobase_start_or_create_for_mysql() in xtrabackup and reset
srv_use_native_aio when required.