mariadb gtid mode - base off gtid_current_pos.

gtid_strict_mode isn't sufficient a test for
MariaDB's GTID mode. The gtid_current_pos
however is always non-blank if GTID is enabled.

closes #513
This commit is contained in:
Daniel Black 2021-01-27 18:03:28 +11:00
parent 9a9ff555ee
commit 9d1d19c97d

View file

@ -1114,9 +1114,9 @@ sub get_all_vars {
} }
# Support GTID MODE FOR MARIADB # Support GTID MODE FOR MARIADB
# Issue MariaDB GTID mode #272 # Issue MariaDB GTID mode #513
$myvar{'gtid_mode'} = $myvar{'gtid_strict_mode'} $myvar{'gtid_mode'} = 'ON'
if ( defined( $myvar{'gtid_strict_mode'} ) ); if ( defined( $myvar{'gtid_current_pos'} ) and $myvar{'gtid_current_pos'} ne '' );
$myvar{'have_threadpool'} = "NO"; $myvar{'have_threadpool'} = "NO";
if ( defined( $myvar{'thread_pool_size'} ) if ( defined( $myvar{'thread_pool_size'} )