summaryrefslogtreecommitdiff
path: root/innobase
diff options
context:
space:
mode:
authorunknown <heikki@hundin.mysql.fi>2004-10-18 15:00:39 +0300
committerunknown <heikki@hundin.mysql.fi>2004-10-18 15:00:39 +0300
commit2eda661804dffa97df85c00ceeaaaf91cbb09a6c (patch)
tree871dd5d5417fe5c254140d1227f92c3030d76135 /innobase
parent8dee7c7e1964b1ddd2cecb6c8810d488dc17e47b (diff)
downloadmariadb-git-2eda661804dffa97df85c00ceeaaaf91cbb09a6c.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
Diffstat (limited to 'innobase')
-rw-r--r--innobase/srv/srv0srv.c8
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 = "";