diff options
author | Kristian Nielsen <knielsen@knielsen-hq.org> | 2015-10-22 10:28:51 +0200 |
---|---|---|
committer | Kristian Nielsen <knielsen@knielsen-hq.org> | 2015-11-13 10:24:53 +0100 |
commit | 75dc2671011ba53e4f4531752c213ced7f9012ff (patch) | |
tree | 1fda725bc4315c4190a9c39917791788788b05ef /sql/rpl_rli.h | |
parent | e7cb032e560e14865941ecdcb553cd3aba856b68 (diff) | |
download | mariadb-git-75dc2671011ba53e4f4531752c213ced7f9012ff.tar.gz |
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.
Diffstat (limited to 'sql/rpl_rli.h')
-rw-r--r-- | sql/rpl_rli.h | 7 |
1 files changed, 7 insertions, 0 deletions
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 @@ -669,6 +669,13 @@ struct rpl_group_info 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. */ |