Commit 9bcc40a7 authored by bin.x.su@oracle.com's avatar bin.x.su@oracle.com

Bug :#16005310 FIx bug - INNODB_ROW_LOCK_TIME_MAX SEEMS TO HAVE AN OVERFLOW

Solution:Set diff_time to 0 if finish_time < start_time
parent 39a2d148
......@@ -1715,7 +1715,8 @@ srv_suspend_mysql_thread(
finish_time = (ib_int64_t) sec * 1000000 + ms;
}
diff_time = (ulint) (finish_time - start_time);
diff_time = (finish_time > start_time) ?
(ulint) (finish_time - start_time) : 0;
srv_n_lock_wait_current_count--;
srv_n_lock_wait_time = srv_n_lock_wait_time + diff_time;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment