1
0
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:
Monty
2017-06-09 16:30:58 +03:00
committed by Sergei Golubchik
parent 44676ed5b1
commit b77bb43f60
2 changed files with 8 additions and 11 deletions

View File

@@ -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()