MariaDB server is a community developed fork of MySQL server. Started by core members of the original MySQL team, MariaDB actively works with outside developers to deliver the most featureful, stable, and sanely licensed open SQL server in the industry.
Find a file
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
.bzr-mysql merge: 5.1 -> 5.1-rpl 2009-01-23 13:22:05 +01:00
BitKeeper Merge trift2.:/MySQL/M51/mysql-5.1 2008-01-28 15:16:40 +01:00
BUILD Merge the bashism removal from 5.0 up to 5.1-build 2008-12-28 16:18:08 +01:00
client merged 5.0-bugteam -> 5.1-bugteam 2009-01-30 15:57:02 +02:00
cmd-line-utils Merge pcg5ppc.xiphis.org:/Network/Servers/anubis.xiphis.org/home/antony/work/mysql-5.1-engines 2008-03-07 13:46:29 -08:00
config/ac-macros Fix Bug#32831: libmysql should be built with all charsets 2009-01-13 16:16:03 +01:00
dbug Bug#38522: 5 seconds delay when closing application using embedded server 2008-12-04 19:41:53 +01:00
Docs Makefile.am: 2008-04-08 11:44:18 +02:00
extra Bug#41612: resolve_stack_dump does not decode 5.1 stack trace 2008-12-19 08:47:28 -02:00
include Bug#40536: SELECT is blocked by INSERT DELAYED waiting on 2009-02-03 15:16:24 -02:00
libmysql Bug#38522: 5 seconds delay when closing application using embedded server 2008-12-04 19:41:53 +01:00
libmysql_r Makefile.am: 2007-10-08 20:55:44 +02:00
libmysqld Fix merge error, mysqltest.cc should be mysqltest.c 2008-12-18 19:36:01 +01:00
man Bug#37098 Get rid of "Installed (but unpackaged)" files in the RPM build 2008-08-27 16:03:39 +02:00
mysql-test Bug#40536: SELECT is blocked by INSERT DELAYED waiting on 2009-02-03 15:16:24 -02:00
mysys Bug#40536: SELECT is blocked by INSERT DELAYED waiting on 2009-02-03 15:16:24 -02:00
netware Merge from 5.0-bugteam local. 2008-08-18 13:33:00 -04:00
plugin Use pkglibdir to simplify pkgplugindir, and fix the path in a 2008-01-02 13:00:46 +00:00
pstack Makefile.am, configure.in: 2007-09-27 21:39:23 +02:00
regex Fix for server bug experienced in Maria (wrong "Truncated incorrect <var_name> 2008-02-18 23:29:39 +01:00
scripts From 5.0.48 the NDB client libraries has been missing in the cluster 2009-01-23 02:59:03 +01:00
server-tools merge 2008-09-01 11:48:21 +02:00
sql Bug#40536: SELECT is blocked by INSERT DELAYED waiting on 2009-02-03 15:16:24 -02:00
sql-bench Fixed compiler warnings 2007-02-23 13:13:55 +02:00
sql-common auto-merge 2009-01-09 14:22:15 +01:00
storage merged 5.1-main -> 5.1-bugteam 2009-01-30 15:44:49 +02:00
strings merged 5.1-main -> 5.1-bugteam 2009-01-05 18:10:20 +02:00
support-files Merge 2008-12-28 08:03:44 +01:00
tests Merge from 5.0-bugteam 2009-01-15 08:28:10 -02:00
unittest Fix for server bug experienced in Maria (wrong "Truncated incorrect <var_name> 2008-02-18 23:29:39 +01:00
vio Merge bk-internal.mysql.com:/home/bk/mysql-5.1-build 2008-02-21 19:53:37 -05:00
win Bug#38784: Mysql server crash if table is altered with partition changes. 2008-11-12 13:36:53 +01:00
zlib The header "config.h" needs to be included "early" to control other headers. 2008-10-13 14:23:39 +02:00
.bzrignore merge 5.1 --> 5.1-rpl 2008-12-13 19:42:12 +00:00
.cvsignore Import changeset 2000-07-31 21:29:14 +02:00
CMakeLists.txt merge: 5.1 -> 5.1-rpl 2009-01-23 13:22:05 +01:00
configure.in Raise the version number in this (enterprise) tree, 5.0.77 will be a community build. 2009-01-29 22:43:52 +01:00
COPYING - manual.texi will be replaced with a manual written in DocBook/XML. This ChangeSet removes all 2005-04-13 11:51:38 +02:00
EXCEPTIONS-CLIENT EXCEPTIONS-CLIENT: 2007-03-14 18:28:16 +01:00
INSTALL-SOURCE ReadMe.txt, INSTALL-WIN-SOURCE, INSTALL-BINARY, INSTALL-SOURCE: 2007-11-23 10:15:55 +01:00
INSTALL-WIN-SOURCE ReadMe.txt, INSTALL-WIN-SOURCE, INSTALL-BINARY, INSTALL-SOURCE: 2007-11-23 10:15:55 +01:00
Makefile.am merge: 5.1 -> 5.1-rpl 2009-01-08 19:03:56 +00:00
README make_binary_distribution.sh: 2006-11-07 22:26:37 +01:00

This is a release of MySQL, a dual-license SQL database server.
MySQL is brought to you by the MySQL team at MySQL AB.

License information can be found in these files:
- For GPL (free) distributions, see the COPYING file and
  the EXCEPTIONS-CLIENT file.
- For commercial distributions, see the LICENSE.mysql file.


For further information about MySQL or additional documentation, see:
- The latest information about MySQL: http://www.mysql.com
- The current MySQL documentation: http://dev.mysql.com/doc

Some manual sections of special interest:

- If you are migrating from an older version of MySQL, please read the
  "Upgrading from..." section first!
- To see what MySQL can do, take a look at the features section.
- For installation instructions, see the Installing and Upgrading chapter.
- For the new features/bugfix history, see the Change History appendix.
- For the currently known bugs/misfeatures (known errors) see the Problems
  and Common Errors appendix.
- For a list of developers and other contributors, see the Credits
  appendix.

A local copy of the MySQL Reference Manual can be found in the Docs
directory in GNU Info format.  You can also browse the manual online or
download it in any of several formats at the URL given earlier in this
file.

************************************************************

IMPORTANT:

Bug or error reports should be sent to http://bugs.mysql.com.