Browse Source
Bug#40536: SELECT is blocked by INSERT DELAYED waiting on
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.
pull/47/merge
5 changed files with 81 additions and 5 deletions
-
3include/thr_lock.h
-
26mysql-test/r/delayed.result
-
43mysql-test/t/delayed.test
-
9mysys/thr_lock.c
-
5sql/sql_insert.cc
Write
Preview
Loading…
Cancel
Save
Reference in new issue