-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
MDEV-35157 : wrong binlog timestamps on secondary nodes of a galera c…
…luster Problem was missing thd->set_time() before binlog event execution in wsrep_apply_events. Removed part of earlier commit 1363580 because it had nothing to do with VERSIONED tables. Note that this commit does not contain mtr-testcase because actual timestamps on binlog file depends the actual time when events are executed and how long their execution takes. e
- Loading branch information
1 parent
c3a7a3c
commit 8e07f6b
Showing
3 changed files
with
14 additions
and
14 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
/* Copyright (C) 2013-2019 Codership Oy <[email protected]> | ||
/* Copyright (C) 2013-2024 Codership Oy <[email protected]> | ||
This program is free software; you can redistribute it and/or modify | ||
it under the terms of the GNU General Public License as published by | ||
|
@@ -211,7 +211,17 @@ int wsrep_apply_events(THD* thd, | |
} | ||
|
||
ev->thd= thd; | ||
thd->set_time(); | ||
|
||
if (!ev->when) | ||
{ | ||
my_hrtime_t hrtime= my_hrtime(); | ||
ev->when= hrtime_to_my_time(hrtime); | ||
ev->when_sec_part= hrtime_sec_part(hrtime); | ||
} | ||
|
||
exec_res= ev->apply_event(thd->wsrep_rgi); | ||
|
||
DBUG_PRINT("info", ("exec_event result: %d", exec_res)); | ||
|
||
if (exec_res) | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters