mirror of
https://github.com/MariaDB/server.git
synced 2025-08-08 11:22:35 +03:00
Use microsecond_interval_timer() instead of my_time() in replicaiton
- Use microsecond_interval_timer() to calculate time for applying row events. (Faster execution) - Removed return value for set_row_stmt_start_timestamp() as it was never used.
This commit is contained in:
@@ -744,7 +744,7 @@ struct rpl_group_info
|
||||
Runtime state for printing a note when slave is taking
|
||||
too long while processing a row event.
|
||||
*/
|
||||
time_t row_stmt_start_timestamp;
|
||||
longlong row_stmt_start_timestamp;
|
||||
bool long_find_row_note_printed;
|
||||
/* Needs room for "Gtid D-S-N\x00". */
|
||||
char gtid_info_buf[5+10+1+10+1+20+1];
|
||||
@@ -890,17 +890,15 @@ struct rpl_group_info
|
||||
char *gtid_info();
|
||||
void unmark_start_commit();
|
||||
|
||||
time_t get_row_stmt_start_timestamp()
|
||||
longlong get_row_stmt_start_timestamp()
|
||||
{
|
||||
return row_stmt_start_timestamp;
|
||||
}
|
||||
|
||||
time_t set_row_stmt_start_timestamp()
|
||||
void set_row_stmt_start_timestamp()
|
||||
{
|
||||
if (row_stmt_start_timestamp == 0)
|
||||
row_stmt_start_timestamp= my_time(0);
|
||||
|
||||
return row_stmt_start_timestamp;
|
||||
row_stmt_start_timestamp= microsecond_interval_timer();
|
||||
}
|
||||
|
||||
void reset_row_stmt_start_timestamp()
|
||||
|
Reference in New Issue
Block a user