1
0
mirror of https://github.com/MariaDB/server.git synced 2025-07-29 05:21:33 +03:00

MW-292 Reset timestamp after transaction replay

Transaction replay causes the THD to re-apply the replication
events from execution, using the same path appliers do. While
applying the log events, the THD's timestamp is set to the
timestamp of the event.
Setting the timestamp explicitly causes function NOW() to
always the timestamp that was set. To avoid this behavior we
reset the timestamp after replaying is done.
This commit is contained in:
Daniele Sciascia
2016-07-14 14:29:59 +02:00
committed by Nirbhay Choubey
parent cbc8a84fa2
commit 7431368eaf
2 changed files with 3 additions and 0 deletions

View File

@ -68,6 +68,7 @@ struct wsrep_thd_shadow {
ulong tx_isolation;
char *db;
size_t db_length;
my_hrtime_t user_time;
};
#endif
class Reprepare_observer;