Commit e80abf1a authored by inaam's avatar inaam

branches/plugin rb://242

Let the master thread sleep if the amount of work to be done is
calibrated as taking less than a second.

Approved by: Heikki
parent d00455cb
...@@ -2524,9 +2524,12 @@ loop: ...@@ -2524,9 +2524,12 @@ loop:
BUF_FLUSH_LIST, BUF_FLUSH_LIST,
n_flush, n_flush,
IB_ULONGLONG_MAX); IB_ULONGLONG_MAX);
if (n_flush == PCT_IO(100)) {
skip_sleep = TRUE; skip_sleep = TRUE;
} }
} }
}
if (srv_activity_count == old_activity_count) { if (srv_activity_count == old_activity_count) {
......
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