From 75dc2671011ba53e4f4531752c213ced7f9012ff Mon Sep 17 00:00:00 2001 From: Kristian Nielsen Date: Thu, 22 Oct 2015 10:28:51 +0200 Subject: 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. --- sql/rpl_rli.h | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'sql/rpl_rli.h') diff --git a/sql/rpl_rli.h b/sql/rpl_rli.h index 2d92f384ef3..1e8bb66ffbe 100644 --- a/sql/rpl_rli.h +++ b/sql/rpl_rli.h @@ -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. -- cgit v1.2.1