1
0
mirror of https://github.com/MariaDB/server.git synced 2025-07-30 16:24:05 +03:00
Files
mariadb/mysql-test/t
Davi Arnaut c9dc936a2b Bug#40536: SELECT is blocked by INSERT DELAYED waiting on
upgrading lock, even with low_priority_updates

The problem is that there is no mechanism to control whether a
delayed insert takes a high or low priority lock on a table.

The solution is to modify the delayed insert thread ("handler")
to take into account the global value of low_priority_updates
when taking table locks. The value of low_priority_updates is
retrieved when the insert delayed thread is created and will
remain the same for the duration of the thread.


include/thr_lock.h:
  Update prototype.
mysql-test/r/delayed.result:
  Add test case result for Bug#40536
mysql-test/t/delayed.test:
  Add test case for Bug#40536
mysys/thr_lock.c:
  Add function parameter which specifies the write lock type.
sql/sql_insert.cc:
  Take a low priority write lock if global value of low_priority_updates
  was ON when the thread was created.
2009-02-03 15:16:24 -02:00
..
2008-03-14 17:59:03 +01:00
2008-07-18 15:00:45 +03:00
2008-03-17 14:26:00 +03:00
2009-01-23 13:22:05 +01:00
2009-01-23 13:22:05 +01:00
2008-12-23 18:21:01 +04:00
2008-11-21 17:32:45 +04:00
2008-04-03 21:40:10 +02:00
2009-01-23 13:22:05 +01:00
2008-12-09 13:27:46 +04:00
2008-09-05 13:36:02 +05:00
2008-12-09 15:16:39 +04:00
2009-01-23 13:22:05 +01:00
2008-10-06 10:27:36 +02:00
2009-01-23 13:22:05 +01:00
2009-01-16 17:38:38 +02:00
2009-01-23 13:22:05 +01:00
2009-01-23 13:22:05 +01:00
2009-01-23 13:22:05 +01:00
2008-10-06 08:37:52 -04:00
2008-10-23 21:27:09 +02:00
2009-01-23 13:22:05 +01:00
2008-09-06 08:51:17 +08:00
2009-01-30 15:44:49 +02:00
2009-01-09 19:51:52 +02:00
2008-12-13 19:42:12 +00:00
2009-01-23 13:22:05 +01:00
2008-10-23 21:27:09 +02:00
2009-01-30 15:44:49 +02:00
2008-10-23 21:27:09 +02:00
2008-02-25 21:18:50 +01:00
2009-01-23 13:22:05 +01:00
2008-12-13 19:42:12 +00:00
2008-05-30 11:12:07 +02:00
2008-07-03 23:41:22 +04:00
2008-12-18 19:28:44 +01:00
2008-04-02 00:43:17 +02:00
2008-05-30 11:12:07 +02:00
2008-12-24 19:26:48 +04:00
2008-09-06 08:51:17 +08:00
2008-10-23 21:27:09 +02:00
2009-01-23 13:22:05 +01:00
2008-12-01 05:17:52 +01:00
2008-07-07 11:43:56 +03:00
2009-01-30 15:44:49 +02:00
2008-12-13 19:42:12 +00:00
2008-05-30 11:12:07 +02:00
2008-12-09 17:31:22 +04:00
2008-05-30 11:12:07 +02:00
2009-01-13 15:04:28 +01:00
2008-09-09 20:52:38 +05:00
2008-11-17 19:43:10 +04:00
2009-01-31 02:08:41 +01:00
2008-08-04 07:04:47 +02:00
2009-02-02 17:56:45 -05:00
2008-12-13 19:42:12 +00:00
2008-10-17 11:49:23 +03:00