Sven Sandberg
7ecb869b6e
BUG#54729: sleep() capped to 5 seconds when executed in the sql thread or in an event
...
Symptom:
When the sql function SLEEP() was executed in the slave SQL thread or from an event (as in
CREATE EVENT, not binlog event), then the timeout was capped to 5 seconds.
Background:
This bug was introduced in the fix of BUG#10374, in the function interruptible_wait() in
item_func.cc.
The function interruptible_wait(), called from item_func_sleep::val_int(), splits the
sleep into 5 seconds units. After each unit, it checks if thd->is_connected() is true: if
not, it stops sleeping. The purpose is to not use system resources to sleep when a client
disconnects.
However, thd->is_connected() returns false for the slave SQL thread and for the event
worker thread, because they don't connect to the server the same way as client threads
do.
Fix:
Make thd->is_connected() return true for all system threads.
sql/sql_class.h:
Made THD::is_connected() return true for all system threads.
2010-07-13 11:13:06 +02:00
..
2010-07-08 18:20:08 -03:00
2010-06-18 17:04:15 +02:00
2010-05-11 20:02:50 +04:00
2009-11-25 13:53:23 +03:00
2010-06-30 14:10:29 +02:00
2010-06-06 13:19:29 +02:00
2010-05-25 17:01:38 -03:00
2010-07-08 18:20:08 -03:00
2010-03-19 11:06:40 +02:00
2010-07-08 18:20:08 -03:00
2010-03-31 16:05:33 +02:00
2010-03-31 16:05:33 +02:00
2010-03-31 16:05:33 +02:00
2010-03-31 16:05:33 +02:00
2010-03-31 16:05:33 +02:00
2010-07-08 18:20:08 -03:00
2010-03-31 16:05:33 +02:00
2010-03-31 16:05:33 +02:00
2010-03-31 16:05:33 +02:00
2010-03-31 16:05:33 +02:00
2010-03-31 16:05:33 +02:00
2010-03-31 16:05:33 +02:00
2010-07-08 18:20:08 -03:00
2010-03-31 16:05:33 +02:00
2010-04-19 16:09:44 +04:00
2010-04-12 17:17:37 +04:00
2010-04-19 16:09:44 +04:00
2010-06-07 12:47:04 +04:00
2010-06-02 16:23:50 +04:00
2010-07-08 22:19:57 -03:00
2010-03-31 16:05:33 +02:00
2010-03-31 16:05:33 +02:00
2010-03-31 16:05:33 +02:00
2010-03-31 16:05:33 +02:00
2010-07-08 18:20:08 -03:00
2010-07-08 18:20:08 -03:00
2010-03-31 16:05:33 +02:00
2010-03-31 16:05:33 +02:00
2010-03-31 16:05:33 +02:00
2010-07-08 18:20:08 -03:00
2010-05-24 14:51:59 +02:00
2010-07-08 18:20:08 -03:00
2010-05-24 14:51:59 +02:00
2010-07-08 18:20:08 -03:00
2010-07-08 18:20:08 -03:00
2010-03-31 16:05:33 +02:00
2010-03-31 16:05:33 +02:00
2010-03-31 16:05:33 +02:00
2010-03-31 16:05:33 +02:00
2010-05-28 19:53:26 -03:00
2010-03-31 16:05:33 +02:00
2010-03-31 16:05:33 +02:00
2010-05-31 16:52:19 +04:00
2010-06-08 10:47:23 +04:00
2010-04-13 19:04:45 +04:00
2010-03-31 16:05:33 +02:00
2010-07-08 18:20:08 -03:00
2010-05-05 14:34:20 +04:00
2010-03-31 16:05:33 +02:00
2010-02-11 08:17:25 +04:00
2010-03-31 16:05:33 +02:00
2010-03-20 23:23:42 +03:00
2010-07-09 09:39:41 +04:00
2010-07-07 10:38:11 +04:00
2010-06-10 22:30:49 -03:00
2010-04-19 16:09:44 +04:00
2010-06-10 22:30:49 -03:00
2010-06-10 22:30:49 -03:00
2010-03-31 16:05:33 +02:00
2010-03-31 16:05:33 +02:00
2010-03-31 16:05:33 +02:00
2010-06-10 22:30:49 -03:00
2010-07-07 10:00:46 +04:00
2010-05-27 20:01:43 +04:00
2010-03-31 16:05:33 +02:00
2010-07-08 18:20:08 -03:00
2010-03-31 16:05:33 +02:00
2010-02-20 12:40:21 +03:00
2010-07-08 18:20:08 -03:00
2010-06-06 13:19:29 +02:00
2010-07-08 18:20:08 -03:00
2010-07-08 18:20:08 -03:00
2010-07-08 18:20:08 -03:00
2010-07-08 18:20:08 -03:00
2010-06-30 16:25:13 +01:00
2009-12-11 15:51:39 +01:00
2010-06-06 13:19:29 +02:00
2010-07-08 18:20:08 -03:00
2010-06-07 11:06:55 +04:00
2010-03-31 16:05:33 +02:00
2010-03-31 16:05:33 +02:00
2010-03-31 16:05:33 +02:00
2010-07-08 18:20:08 -03:00
2010-05-28 09:47:58 +04:00
2010-07-08 18:20:08 -03:00
2010-07-08 18:20:08 -03:00
2010-06-23 00:32:29 +04:00
2010-06-11 10:15:55 +02:00
2010-03-31 16:05:33 +02:00
2010-03-31 16:05:33 +02:00
2010-03-31 16:05:33 +02:00
2010-05-31 12:29:54 -03:00
2010-03-30 22:52:45 +02:00
2010-03-31 16:05:33 +02:00
2010-03-31 16:05:33 +02:00
2010-03-31 16:05:33 +02:00
2010-06-02 16:23:50 +04:00
2010-03-31 16:05:33 +02:00
2010-07-08 18:20:08 -03:00
2010-06-23 00:32:29 +04:00
2010-07-08 18:20:08 -03:00
2010-01-25 22:34:34 +01:00
2010-03-31 16:05:33 +02:00
2010-07-08 18:20:08 -03:00
2010-04-12 17:17:37 +04:00
2010-07-08 18:20:08 -03:00
2010-03-31 16:05:33 +02:00
2010-07-08 18:20:08 -03:00
2010-03-31 16:05:33 +02:00
2010-07-08 18:20:08 -03:00
2010-05-18 18:32:44 +03:00
2010-03-31 16:05:33 +02:00
2010-03-31 16:05:33 +02:00
2010-03-31 16:05:33 +02:00
2010-03-31 16:05:33 +02:00
2010-03-31 16:05:33 +02:00
2010-03-31 16:05:33 +02:00
2010-07-08 18:20:08 -03:00
2010-03-31 16:05:33 +02:00
2010-03-31 16:05:33 +02:00
2010-03-31 16:05:33 +02:00
2010-07-08 18:20:08 -03:00
2010-05-31 12:29:54 -03:00
2010-03-31 16:05:33 +02:00
2010-06-04 17:10:22 +03:00
2010-06-04 17:10:22 +03:00
2010-04-13 19:04:45 +04:00
2010-07-08 18:20:08 -03:00
2010-03-31 16:05:33 +02:00
2010-03-31 16:05:33 +02:00
2010-03-31 16:05:33 +02:00
2010-06-17 17:31:51 +04:00
2010-06-06 13:19:29 +02:00
2010-07-08 18:20:08 -03:00
2010-03-31 16:05:33 +02:00
2010-07-08 18:20:08 -03:00
2010-03-31 16:05:33 +02:00
2010-06-11 17:48:24 +04:00
2010-06-10 22:30:49 -03:00
2010-05-26 16:12:23 +02:00
2010-05-26 16:12:23 +02:00
2010-05-28 09:47:58 +04:00
2010-04-07 13:58:40 +02:00
2010-03-31 16:05:33 +02:00
2010-03-31 16:05:33 +02:00
2010-04-15 13:36:36 +04:00
2010-03-31 16:05:33 +02:00
2010-07-08 18:20:08 -03:00
2010-06-11 19:28:18 +04:00
2010-07-08 18:20:08 -03:00
2010-03-31 16:05:33 +02:00
2010-05-25 17:01:38 -03:00
2009-12-25 16:49:21 +01:00
2010-07-08 18:20:08 -03:00
2010-04-12 17:17:37 +04:00
2010-07-08 18:20:08 -03:00
2010-07-13 11:13:06 +02:00
2010-03-31 16:05:33 +02:00
2010-07-08 18:20:08 -03:00
2010-03-31 16:05:33 +02:00
2010-05-28 19:13:31 -03:00
2010-03-31 16:05:33 +02:00
2010-03-31 16:05:33 +02:00
2010-06-08 12:08:46 +04:00
2010-03-31 16:05:33 +02:00
2010-07-08 18:20:08 -03:00
2010-03-31 16:05:33 +02:00
2010-06-23 00:32:29 +04:00
2010-06-17 17:31:51 +04:00
2010-06-10 22:30:49 -03:00
2010-04-12 17:17:37 +04:00
2010-03-31 16:05:33 +02:00
2010-03-31 16:05:33 +02:00
2010-03-31 16:05:33 +02:00
2010-03-31 16:05:33 +02:00
2010-07-08 18:20:08 -03:00
2010-06-09 12:39:09 +04:00
2010-03-31 16:05:33 +02:00
2010-03-31 16:05:33 +02:00
2010-07-08 18:20:08 -03:00
2010-03-31 16:05:33 +02:00
2010-07-08 18:20:08 -03:00
2010-06-22 18:40:14 +02:00
2010-03-31 16:05:33 +02:00
2010-07-08 18:20:08 -03:00
2010-07-08 18:20:08 -03:00
2010-03-31 16:05:33 +02:00
2010-07-08 18:20:08 -03:00
2010-03-31 16:05:33 +02:00
2010-07-08 18:20:08 -03:00
2010-03-31 16:05:33 +02:00
2010-07-08 18:20:08 -03:00
2010-03-31 16:05:33 +02:00
2010-06-10 22:30:49 -03:00
2010-07-08 18:20:08 -03:00
2010-06-17 17:31:51 +04:00
2010-07-08 18:20:08 -03:00
2010-05-24 14:51:59 +02:00
2010-06-07 17:40:52 +04:00
2010-07-08 18:20:08 -03:00
2010-07-08 18:20:08 -03:00
2010-06-17 17:31:51 +04:00
2010-06-08 19:47:10 +02:00
2010-07-08 18:20:08 -03:00
2010-07-08 18:20:08 -03:00
2010-05-25 17:01:38 -03:00
2010-03-31 16:05:33 +02:00
2010-05-09 02:03:35 +04:00
2010-03-31 16:05:33 +02:00
2010-07-08 18:20:08 -03:00
2010-06-23 00:32:29 +04:00
2010-03-31 16:05:33 +02:00
2010-03-31 16:05:33 +02:00
2010-07-08 18:20:08 -03:00
2010-03-31 16:05:33 +02:00
2010-05-14 22:11:25 +04:00
2010-03-31 16:05:33 +02:00
2010-05-28 19:13:31 -03:00
2010-07-08 18:20:08 -03:00
2010-07-08 18:20:08 -03:00
2010-05-24 00:41:18 +04:00
2010-03-31 16:05:33 +02:00
2010-03-31 16:05:33 +02:00
2010-07-08 18:20:08 -03:00
2010-05-31 12:29:54 -03:00
2010-03-31 16:05:33 +02:00
2010-03-31 16:05:33 +02:00
2010-06-17 17:31:51 +04:00
2010-03-31 16:05:33 +02:00
2010-07-08 18:20:08 -03:00
2010-05-27 18:11:55 -03:00
2010-06-11 19:28:18 +04:00
2010-06-10 22:30:49 -03:00
2010-03-31 16:05:33 +02:00
2010-06-23 00:32:29 +04:00
2010-04-12 17:17:37 +04:00
2010-06-17 17:31:51 +04:00
2010-05-25 17:01:38 -03:00
2010-06-17 17:31:51 +04:00
2010-03-31 16:05:33 +02:00
2010-03-31 16:05:33 +02:00
2010-03-31 16:05:33 +02:00
2010-03-31 16:05:33 +02:00
2010-07-08 14:36:10 +02:00
2010-07-08 18:20:08 -03:00
2010-07-08 18:20:08 -03:00
2010-06-23 00:32:29 +04:00
2010-06-11 17:48:24 +04:00
2010-05-28 19:13:31 -03:00
2010-06-25 09:32:24 +02:00
2009-12-03 21:37:38 +03:00
2010-06-11 19:28:18 +04:00
2010-03-31 16:05:33 +02:00
2010-03-15 14:57:20 +01:00
2010-07-08 18:20:08 -03:00
2010-07-08 18:20:08 -03:00
2010-03-31 16:05:33 +02:00