mirror of
https://github.com/MariaDB/server.git
synced 2026-04-26 18:25:30 +02:00
Change Seconds_behind_master to be updated only at commit in parallel replication
Before, the Seconds_behind_master was updated already when an event was queued for a worker thread to execute later. This might lead users to interpret a low value as the slave being almost up to date with the master, while in reality there might still be lots and lots of events still queued up waiting to be applied by the slave. See https://lists.launchpad.net/maria-developers/msg08958.html for more detailed discussions.
This commit is contained in:
parent
e7cb032e56
commit
75dc267101
4 changed files with 29 additions and 1 deletions
|
|
@ -668,6 +668,13 @@ struct rpl_group_info
|
|||
/* Needs room for "Gtid D-S-N\x00". */
|
||||
char gtid_info_buf[5+10+1+10+1+20+1];
|
||||
|
||||
/*
|
||||
The timestamp, from the master, of the commit event.
|
||||
Used to do delayed update of rli->last_master_timestamp, for getting
|
||||
reasonable values out of Seconds_Behind_Master in SHOW SLAVE STATUS.
|
||||
*/
|
||||
time_t last_master_timestamp;
|
||||
|
||||
/*
|
||||
Information to be able to re-try an event group in case of a deadlock or
|
||||
other temporary error.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue