Skip to content
This repository has been archived by the owner on May 14, 2018. It is now read-only.

Commit

Permalink
disable flush status for wsrep
Browse files Browse the repository at this point in the history
  • Loading branch information
Jay Janssen committed Oct 1, 2014
1 parent 9a44022 commit 90be0cf
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions myq_status
Original file line number Diff line number Diff line change
Expand Up @@ -753,11 +753,11 @@ sub process_global_status {
( &format_number( &counter_diff( 'wsrep_flow_control_sent' ), 0, 3 ) > 0 ? '*' : '' ),
);

if ($status->{'wsrep_cluster_status'} eq 'Primary' and
$status->{'wsrep_local_state_comment'} !~ m/^Join/ ) {
# This helps keep things like wsrep_apply_window and others fresh for Galera polling
&mysql_call( "FLUSH STATUS" );
}
# if ($status->{'wsrep_cluster_status'} eq 'Primary' and
# $status->{'wsrep_local_state_comment'} !~ m/^Join/ ) {
# # This helps keep things like wsrep_apply_window and others fresh for Galera polling
# &mysql_call( "FLUSH STATUS" );
# }

} elsif( $MODE eq 'wsrep_latency' ) {
printf( "%s / %s (idx: %d) / %s %s\n", $variables->{'wsrep_cluster_name'}, $variables->{'wsrep_node_name'}, $status->{'wsrep_local_index'}, $status->{'wsrep_provider_name'}, $status->{'wsrep_provider_version'}
Expand Down

0 comments on commit 90be0cf

Please sign in to comment.