26 lines
505 B
Plaintext
26 lines
505 B
Plaintext
select role from information_schema.alisql_cluster_local;
|
|
role
|
|
Follower
|
|
set global consensus_force_promote=ON;
|
|
select role from information_schema.alisql_cluster_local;
|
|
role
|
|
Leader
|
|
create table t1 (id int);
|
|
insert into t1 values (1);
|
|
select * from t1;
|
|
id
|
|
1
|
|
select role from information_schema.alisql_cluster_local;
|
|
role
|
|
Follower
|
|
set global consensus_force_promote=ON;
|
|
select role from information_schema.alisql_cluster_local;
|
|
role
|
|
Leader
|
|
insert into t1 values (1);
|
|
select * from t1;
|
|
id
|
|
1
|
|
1
|
|
drop table t1;
|