Skip to content

Commit

Permalink
MDEV-21489 : wsrep_cluster_conf_id has wrong value
Browse files Browse the repository at this point in the history
Variable was not updated after initialization.
  • Loading branch information
Jan Lindström committed May 4, 2020
1 parent 7f03a93 commit d002ec2
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 0 deletions.
10 changes: 10 additions & 0 deletions mysql-test/suite/galera/r/galera_var_cluster_conf_id.result
@@ -0,0 +1,10 @@
connection node_2;
connection node_1;
connection node_1;
show status like 'wsrep_cluster_conf_id';
Variable_name Value
wsrep_cluster_conf_id 2
connection node_2;
show status like 'wsrep_cluster_conf_id';
Variable_name Value
wsrep_cluster_conf_id 2
7 changes: 7 additions & 0 deletions mysql-test/suite/galera/t/galera_var_cluster_conf_id.test
@@ -0,0 +1,7 @@
--source include/galera_cluster.inc

--connection node_1
show status like 'wsrep_cluster_conf_id';

--connection node_2
show status like 'wsrep_cluster_conf_id';
1 change: 1 addition & 0 deletions sql/wsrep_server_service.cc
Expand Up @@ -201,6 +201,7 @@ void Wsrep_server_service::log_view(
wsrep_update_cluster_state_uuid(os.str().c_str());
mysql_mutex_unlock(&LOCK_status);
wsrep_config_state->set(view);
wsrep_cluster_conf_id= view.view_seqno().get();

if (view.status() == wsrep::view::primary)
{
Expand Down

0 comments on commit d002ec2

Please sign in to comment.