unknown
719e64e4a5
Bug#32528 Global read lock with a low priority write lock causes a server crash
...
FLUSH TABLES WITH READ LOCK fails to properly detect write locked
tables when running under low priority updates.
The problem is that when trying to aspire a global read lock, the
reload_acl_and_cache() function fails to properly check if the thread
has a low priority write lock, which later my cause a server crash or
deadlock.
The solution is to simple check if the thread has any type of the
possible exclusive write locks.
mysql-test/r/flush.result:
Add test case result for Bug#32528
mysql-test/t/flush.test:
Add test case for Bug#32528
sql/sql_parse.cc:
Although it should not matter under LOCK TABLES, use TL_WRITE_ALLOW_WRITE
to emphasize that it should fail in case of any write lock.
2007-11-22 10:18:19 -02:00
..
2007-06-15 11:19:35 +05:00
2007-09-13 18:41:50 +05:00
2006-12-31 01:02:27 +01:00
2007-08-29 22:29:07 +02:00
2006-12-31 01:02:27 +01:00
2006-12-31 01:02:27 +01:00
2006-12-31 01:02:27 +01:00
2006-12-31 01:02:27 +01:00
2007-07-12 00:55:40 +05:00
2007-10-23 11:26:37 +03:00
2007-10-10 16:26:02 +03:00
2007-10-22 16:10:08 +04:00
2006-12-31 01:02:27 +01:00
2007-01-31 00:06:42 +01:00
2007-10-05 16:33:08 +05:00
2006-12-31 01:02:27 +01:00
2007-06-27 13:19:34 +05:00
2007-01-22 14:04:40 +02:00
2007-07-26 20:52:53 +04:00
2007-02-22 16:59:57 +02:00
2007-02-14 18:35:59 +02:00
2007-05-10 18:14:04 +05:00
2007-10-23 14:27:11 +05:00
2007-08-01 18:14:50 -06:00
2007-10-23 16:32:05 +05:00
2007-07-17 19:51:50 +04:00
2007-10-23 18:51:43 +05:00
2007-10-02 23:47:30 -06:00
2007-10-23 14:27:11 +05:00
2007-07-12 13:29:51 +02:00
2007-06-14 16:18:01 +05:00
2007-06-06 04:42:41 +05:00
2007-10-04 11:32:49 +02:00
2007-06-19 13:56:02 +02:00
2007-11-02 23:31:23 +01:00
2007-10-02 13:36:13 +02:00
2007-08-15 09:23:44 +02:00
2007-08-01 18:39:13 -06:00
2006-12-31 01:02:27 +01:00
2006-12-31 01:02:27 +01:00
2006-12-31 01:02:27 +01:00
2007-05-28 12:44:59 +04:00
2006-12-31 01:02:27 +01:00
2007-10-13 09:12:15 +03:00
2007-09-22 11:49:27 +04:00
2007-08-02 14:51:03 +05:00
2007-05-10 00:17:21 +05:00
2007-10-31 12:31:36 +01:00
2007-10-09 11:36:05 +02:00
2007-10-04 12:01:28 +05:00
2007-10-04 12:01:28 +05:00
2006-12-23 20:17:15 +01:00
2007-01-22 14:04:40 +02:00
2007-10-11 16:07:10 +05:00
2007-10-21 21:45:31 +04:00
2007-06-29 10:39:17 +03:00
2007-04-17 17:35:29 -07:00
2007-10-23 18:51:43 +05:00
2007-06-29 10:39:17 +03:00
2007-10-19 17:07:08 +02:00
2007-10-23 18:51:43 +05:00
2006-12-31 01:02:27 +01:00
2006-12-31 01:02:27 +01:00
2007-10-23 18:51:43 +05:00
2007-10-21 21:45:31 +04:00
2007-04-29 12:56:46 +05:00
2007-03-08 12:04:45 +03:00
2007-03-08 12:04:45 +03:00
2007-08-27 10:13:54 -03:00
2007-08-01 15:27:03 +05:00
2007-05-28 22:20:22 +03:00
2007-07-30 18:27:36 +03:00
2007-06-28 11:13:18 +02:00
2006-12-31 01:02:27 +01:00
2006-09-01 10:32:12 +02:00
2006-12-31 01:02:27 +01:00
2007-10-05 09:38:57 +02:00
2007-05-28 00:05:38 +02:00
2006-12-31 01:02:27 +01:00
2007-10-23 18:51:43 +05:00
2006-12-23 20:17:15 +01:00
2007-10-12 11:30:53 +02:00
2007-06-19 12:31:37 +05:00
2007-10-23 16:32:05 +05:00
2007-01-22 14:04:40 +02:00
2007-05-15 15:29:12 +03:00
2007-04-06 18:56:39 +04:00
2006-12-23 20:17:15 +01:00
2007-01-22 14:04:40 +02:00
2006-12-31 01:02:27 +01:00
2006-12-31 01:02:27 +01:00
2007-09-22 11:49:27 +04:00
2007-05-16 10:44:59 +02:00
2006-12-31 01:02:27 +01:00
2007-02-21 14:07:08 +02:00
2006-12-31 01:02:27 +01:00
2007-10-23 18:51:43 +05:00
2007-02-21 14:07:08 +02:00
2007-07-11 19:29:11 +04:00
2007-02-08 15:53:14 +01:00
2006-12-23 20:17:15 +01:00
2006-12-23 20:17:15 +01:00
2007-10-09 20:46:33 -03:00
2007-10-09 20:46:33 -03:00
2007-03-14 12:02:32 -06:00
2007-03-14 12:02:32 -06:00
2007-07-30 17:14:34 +04:00
2007-07-30 17:14:34 +04:00
2007-10-09 20:46:33 -03:00
2006-12-23 20:17:15 +01:00
2007-07-05 18:24:48 +03:00
2007-03-23 16:28:07 -06:00
2007-10-23 18:51:43 +05:00
2007-09-27 12:15:19 +03:00
2007-02-06 17:18:43 +04:00
2006-12-31 01:02:27 +01:00
2006-12-23 20:17:15 +01:00
2007-10-23 18:51:43 +05:00
2006-12-23 20:17:15 +01:00
2007-10-01 12:44:29 +02:00
2007-08-17 16:55:20 +02:00
2007-10-10 14:00:57 -06:00
2007-09-21 12:09:00 +04:00
2007-05-24 11:21:27 +02:00
2006-12-31 01:02:27 +01:00
2006-12-31 01:02:27 +01:00
2006-12-31 01:02:27 +01:00
2006-12-31 01:02:27 +01:00
2007-07-05 02:20:32 +04:00
2007-07-30 18:27:36 +03:00
2007-03-22 15:07:32 +01:00
2006-12-31 01:02:27 +01:00
2007-06-20 12:46:15 +04:00
2007-06-06 04:42:41 +05:00
2007-10-12 10:55:46 -03:00
2007-02-19 14:39:37 +02:00
2007-09-27 12:17:16 +03:00
2007-08-30 17:23:40 -06:00
2007-08-28 18:51:03 +03:00
2006-12-31 01:02:27 +01:00
2007-03-29 10:35:28 +04:00
2007-07-30 18:27:36 +03:00
2007-01-12 12:22:54 +01:00
2006-12-31 01:02:27 +01:00
2006-12-31 01:02:27 +01:00
2007-10-23 14:27:11 +05:00
2006-12-31 01:02:27 +01:00
2006-12-31 01:02:27 +01:00
2007-11-22 10:18:19 -02:00
2007-07-12 23:22:17 +04:00
2006-12-31 01:02:27 +01:00
2007-07-05 13:09:56 +05:00
2006-12-31 01:02:27 +01:00
2007-10-23 18:51:43 +05:00
2007-10-10 16:26:02 +03:00
2007-09-20 13:54:46 +05:00
2007-07-01 15:33:28 -07:00
2006-12-23 20:17:15 +01:00
2007-08-07 19:25:45 +05:00
2007-01-22 14:04:40 +02:00
2007-10-10 16:26:02 +03:00
2006-12-31 01:02:27 +01:00
2007-09-04 16:40:27 -06:00
2007-07-12 22:26:41 +04:00
2007-10-16 11:16:31 -06:00
2007-07-06 16:18:49 +04:00
2007-07-31 16:15:56 +04:00
2007-10-23 14:27:11 +05:00
2007-09-27 23:45:39 +04:00
2006-12-23 20:17:15 +01:00
2007-10-23 18:51:43 +05:00
2007-07-07 07:46:17 +02:00
2006-12-23 20:17:15 +01:00
2007-03-22 20:32:07 +02:00
2007-06-09 17:46:09 +05:00
2007-10-10 16:26:02 +03:00
2007-09-24 15:34:10 +03:00
2006-12-31 01:02:27 +01:00
2007-08-06 04:57:28 -07:00
2006-12-23 20:17:15 +01:00
2007-05-16 10:44:59 +02:00
2007-05-16 10:44:59 +02:00
2007-10-17 17:54:11 -04:00
2007-10-17 17:54:11 -04:00
2007-07-01 15:33:28 -07:00
2007-07-11 10:49:54 +03:00
2007-08-03 01:58:21 +05:00