Skip to content

Commit 9d1d19c

Browse files
committed
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
1 parent 9a9ff55 commit 9d1d19c

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

mysqltuner.pl

+3-3
Original file line numberDiff line numberDiff line change
@@ -1114,9 +1114,9 @@ sub get_all_vars {
11141114
}
11151115

11161116
# Support GTID MODE FOR MARIADB
1117-
# Issue MariaDB GTID mode #272
1118-
$myvar{'gtid_mode'} = $myvar{'gtid_strict_mode'}
1119-
if ( defined( $myvar{'gtid_strict_mode'} ) );
1117+
# Issue MariaDB GTID mode #513
1118+
$myvar{'gtid_mode'} = 'ON'
1119+
if ( defined( $myvar{'gtid_current_pos'} ) and $myvar{'gtid_current_pos'} ne '' );
11201120

11211121
$myvar{'have_threadpool'} = "NO";
11221122
if ( defined( $myvar{'thread_pool_size'} )

0 commit comments

Comments
 (0)