diff options
author | Sergey Vojtovich <svoj@sun.com> | 2010-04-01 15:41:47 +0400 |
---|---|---|
committer | Sergey Vojtovich <svoj@sun.com> | 2010-04-01 15:41:47 +0400 |
commit | bed55357a5d9bdc31e06e3d1520e241edb2ab688 (patch) | |
tree | accc76340deeda731bd0681e68ae70bde95b3855 /storage/innodb_plugin/srv | |
parent | de56eaa5b64bc3ef2030465e592844bc2620b387 (diff) | |
download | mariadb-git-bed55357a5d9bdc31e06e3d1520e241edb2ab688.tar.gz |
Applying InnoDB snapshot
Detailed revision comments:
r6614 | inaam | 2010-02-09 20:26:23 +0200 (Tue, 09 Feb 2010) | 7 lines
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
Diffstat (limited to 'storage/innodb_plugin/srv')
-rw-r--r-- | storage/innodb_plugin/srv/srv0srv.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/storage/innodb_plugin/srv/srv0srv.c b/storage/innodb_plugin/srv/srv0srv.c index 23ec3b8db4c..1dba8f3ba2b 100644 --- a/storage/innodb_plugin/srv/srv0srv.c +++ b/storage/innodb_plugin/srv/srv0srv.c @@ -2524,7 +2524,10 @@ loop: BUF_FLUSH_LIST, n_flush, IB_ULONGLONG_MAX); - skip_sleep = TRUE; + + if (n_flush == PCT_IO(100)) { + skip_sleep = TRUE; + } } } |