Skip to content

Commit

Permalink
mariadb gtid mode - base off gtid_current_pos.
Browse files Browse the repository at this point in the history
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
  • Loading branch information
grooverdan committed Jan 27, 2021
1 parent 9a9ff55 commit 9d1d19c
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions mysqltuner.pl
Original file line number Diff line number Diff line change
Expand Up @@ -1114,9 +1114,9 @@ sub get_all_vars {
}

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

$myvar{'have_threadpool'} = "NO";
if ( defined( $myvar{'thread_pool_size'} )
Expand Down

0 comments on commit 9d1d19c

Please sign in to comment.