diff options
author | unknown <heikki@hundin.mysql.fi> | 2004-10-18 15:00:39 +0300 |
---|---|---|
committer | unknown <heikki@hundin.mysql.fi> | 2004-10-18 15:00:39 +0300 |
commit | f8f7e4591918dbada386d4f6b2afc527d5df29ac (patch) | |
tree | 871dd5d5417fe5c254140d1227f92c3030d76135 | |
parent | 85828f4a1b7136b4b09494fa146232f788e3a152 (diff) | |
download | mariadb-git-f8f7e4591918dbada386d4f6b2afc527d5df29ac.tar.gz |
srv0srv.c:
If innodb_thread_concurrency would be exceeded, let a thread sleep 10 ms before entering the FIFO queue; previously, the value was 50 ms, which Peter Z considered too long
innobase/srv/srv0srv.c:
If innodb_thread_concurrency would be exceeded, let a thread sleep 10 ms before entering the FIFO queue; previously, the value was 50 ms, which Peter Z considered too long
-rw-r--r-- | innobase/srv/srv0srv.c | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/innobase/srv/srv0srv.c b/innobase/srv/srv0srv.c index d913d77fdfc..b34ae9f36f4 100644 --- a/innobase/srv/srv0srv.c +++ b/innobase/srv/srv0srv.c @@ -951,7 +951,13 @@ retry: trx->op_info = "sleeping before joining InnoDB queue"; - os_thread_sleep(50000); + /* Peter Zaitsev suggested that we take the sleep away + altogether. But the sleep may be good in pathological + situations of lots of thread switches. Simply put some + threads aside for a while to reduce the number of thread + switches. */ + + os_thread_sleep(10000); trx->op_info = ""; |