Commit 648ee9c
committed
MDEV-38202: make init_rpl_role visible at runtime
Problem:
The --init-rpl-role option can be set in the .cnf file or command
line to configure the server replication role at startup (MASTER
or SLAVE), but there was no way to check this value at runtime.
This made it hard to for investigation issues because
we can't know which role the server was started with.
Solution:
I added a new read-only status variable init_rpl_role that captures
the value of rpl_status right after startup and keeps it unchanged.
ex usage: SHOW STATUS LIKE 'init_rpl_role'; SHOW GLOBAL STATUS LIKE 'init_rpl_role';1 parent 9fc925d commit 648ee9c
File tree
6 files changed
+42
-0
lines changed- mysql-test/suite/rpl
- r
- t
- sql
6 files changed
+42
-0
lines changedLines changed: 12 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
7315 | 7315 | | |
7316 | 7316 | | |
7317 | 7317 | | |
| 7318 | + | |
| 7319 | + | |
| 7320 | + | |
| 7321 | + | |
| 7322 | + | |
| 7323 | + | |
| 7324 | + | |
7318 | 7325 | | |
7319 | 7326 | | |
7320 | 7327 | | |
| |||
7979 | 7986 | | |
7980 | 7987 | | |
7981 | 7988 | | |
| 7989 | + | |
7982 | 7990 | | |
7983 | 7991 | | |
7984 | 7992 | | |
| |||
9141 | 9149 | | |
9142 | 9150 | | |
9143 | 9151 | | |
| 9152 | + | |
9144 | 9153 | | |
9145 | 9154 | | |
9146 | 9155 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
52 | 52 | | |
53 | 53 | | |
54 | 54 | | |
| 55 | + | |
55 | 56 | | |
56 | 57 | | |
57 | 58 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
29 | 29 | | |
30 | 30 | | |
31 | 31 | | |
| 32 | + | |
32 | 33 | | |
33 | 34 | | |
34 | 35 | | |
| |||
0 commit comments