mirror of
https://github.com/MariaDB/server.git
synced 2025-01-16 03:52:35 +01:00
MDEV-21489 : wsrep_cluster_conf_id has wrong value
Variable was not updated after initialization.
This commit is contained in:
parent
7f03a93348
commit
d002ec2c87
3 changed files with 18 additions and 0 deletions
10
mysql-test/suite/galera/r/galera_var_cluster_conf_id.result
Normal file
10
mysql-test/suite/galera/r/galera_var_cluster_conf_id.result
Normal file
|
@ -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
|
|
@ -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';
|
|
@ -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)
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue