mirror of
https://github.com/MariaDB/server.git
synced 2026-04-20 15:25:33 +02:00
Postfix of bug#45674
rpl_semi_sync_master_wait_sessions was reset by FLUSH STATUS, which could cause the master fail to wake up waiting sessions and result in master timeout waiting for slave reply. rpl_semi_sync_master_wait_session should not be reset, this problem is fixed by this patch. plugin/semisync/semisync_master_plugin.cc: Change wait_sessions from SHOW_LONG back to SHOW_FUNC so that it will not be reset by FLUSH STATUS.
This commit is contained in:
parent
48e98026e2
commit
d8dee8cb32
1 changed files with 3 additions and 2 deletions
|
|
@ -278,6 +278,7 @@ Binlog_transmit_observer transmit_observer = {
|
|||
|
||||
DEF_SHOW_FUNC(status, SHOW_BOOL)
|
||||
DEF_SHOW_FUNC(clients, SHOW_LONG)
|
||||
DEF_SHOW_FUNC(wait_sessions, SHOW_LONG)
|
||||
DEF_SHOW_FUNC(trx_wait_time, SHOW_LONGLONG)
|
||||
DEF_SHOW_FUNC(trx_wait_num, SHOW_LONGLONG)
|
||||
DEF_SHOW_FUNC(net_wait_time, SHOW_LONGLONG)
|
||||
|
|
@ -301,8 +302,8 @@ static SHOW_VAR semi_sync_master_status_vars[]= {
|
|||
(char*) &rpl_semi_sync_master_no_transactions,
|
||||
SHOW_LONG},
|
||||
{"Rpl_semi_sync_master_wait_sessions",
|
||||
(char*) &rpl_semi_sync_master_wait_sessions,
|
||||
SHOW_LONG},
|
||||
(char*) &SHOW_FNAME(wait_sessions),
|
||||
SHOW_FUNC},
|
||||
{"Rpl_semi_sync_master_no_times",
|
||||
(char*) &rpl_semi_sync_master_off_times,
|
||||
SHOW_LONG},
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue