Skip to content

Commit fbfd9fc

Browse files
author
Paweł Olchawa
committed
BUG#29138644 PAGE CLEANER WILL SLEEP FOR LONG TIME IF CLOCK CHANGES
Fix for invalid comparison of time vs monotonic time when checking when error monitor was last updated. Reviewed by: Rahul Malik <[email protected]>
1 parent c1315d0 commit fbfd9fc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

storage/innobase/srv/srv0srv.cc

+1-1
Original file line numberDiff line numberDiff line change
@@ -1727,7 +1727,7 @@ void srv_error_monitor_thread() {
17271727

17281728
old_lsn = new_lsn;
17291729

1730-
if (difftime(time(NULL), srv_last_monitor_time) > 60) {
1730+
if (ut_difftime(ut_time_monotonic(), srv_last_monitor_time) > 60) {
17311731
/* We referesh InnoDB Monitor values so that averages are
17321732
printed from at most 60 last seconds */
17331733

0 commit comments

Comments
 (0)