diff --git a/innobase/srv/srv0srv.c b/innobase/srv/srv0srv.c index d913d77fdfcff44293b4712155379be3608dfee4..b34ae9f36f4afd001020ee443a61d87304280bd6 100644 --- a/innobase/srv/srv0srv.c +++ b/innobase/srv/srv0srv.c @@ -951,7 +951,13 @@ srv_conc_enter_innodb( 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 = "";