diff options
author | Eugene Kosov <claprix@yandex.ru> | 2018-08-04 10:52:12 +0300 |
---|---|---|
committer | Eugene Kosov <claprix@yandex.ru> | 2018-10-01 17:53:20 +0300 |
commit | 44016ec0ca27eddd7bc98916cc3f7e1d7ae81522 (patch) | |
tree | 4c347f04baa7328b675c6a36e01b8f62cff2a733 /sql/wsrep_applier.cc | |
parent | 9556d56da2a87b47f545ce4c9cbd09f7778ad527 (diff) | |
download | mariadb-git-44016ec0ca27eddd7bc98916cc3f7e1d7ae81522.tar.gz |
MDEV-16211 Contents of transaction_registry not replicated by Galera
Patch fixes two bugs:
1) BEGIN_TIMESTAMP of MYSQL.TRANSACTION_REGISTY is '0-0-0' on replication record insertion
2) BEGIN_TIMESTAMP equals COMMMIT_TIMESTAMP in MYSQL.TRANSACTION_REGISTRY
Fixed by calling THD::set_time() at appropriate places
Diffstat (limited to 'sql/wsrep_applier.cc')
-rw-r--r-- | sql/wsrep_applier.cc | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/sql/wsrep_applier.cc b/sql/wsrep_applier.cc index f2d90def5ef..1f50ee55711 100644 --- a/sql/wsrep_applier.cc +++ b/sql/wsrep_applier.cc @@ -146,6 +146,7 @@ static wsrep_cb_status_t wsrep_apply_events(THD* thd, /* Use the original server id for logging. */ thd->set_server_id(ev->server_id); thd->set_time(); // time the query + thd->transaction.start_time.reset(thd); wsrep_xid_init(&thd->transaction.xid_state.xid, thd->wsrep_trx_meta.gtid.uuid, thd->wsrep_trx_meta.gtid.seqno); |