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
Dmitry Lenev d076be2a32 Fix for bug #11762012 - "54553: INNODB ASSERTS IN
HA_INNOBASE::UPDATE_ROW, TEMPORARY TABLE, TABLE LOCK".

Attempt to update an InnoDB temporary table under LOCK TABLES
led to assertion failure in both debug and production builds
if this temporary table was explicitly locked for READ. The 
same scenario works fine for MyISAM temporary tables.

The assertion failure was caused by discrepancy between lock 
that was requested on the rows of temporary table at LOCK TABLES
time and by update operation. Since SQL-layer requested a 
read-lock at LOCK TABLES time InnoDB engine assumed that upcoming
statements which are going to be executed under LOCK TABLES will 
only read table and therefore should acquire only S-lock.
An update operation broken this assumption by requesting X-lock.

Possible approaches to fixing this problem are:

1) Skip locking of temporary tables as locking doesn't make any
   sense for connection-local objects.
2) Prohibit changing of temporary table locked by LOCK TABLES ... 
   READ.

Unfortunately both of these approaches have drawbacks which make 
them unviable for stable versions of server.

So this patch takes another approach and changes code in such way
that LOCK TABLES for a temporary table will always request write
lock. In 5.1 version of this patch switch from read lock to write
lock is done inside of InnoDBs handler methods as doing it on 
SQL-layer causes compatibility troubles with FLUSH TABLES WITH
READ LOCK.
2011-05-26 17:14:47 +04:00
.bzr-mysql merge 2010-12-17 14:44:35 +02:00
BitKeeper Merge trift2.:/MySQL/M51/mysql-5.1 2008-01-28 15:16:40 +01:00
BUILD Merge 2010-12-29 00:47:05 +01:00
client BUG#12354268 2011-05-06 00:54:36 +01:00
cmd-line-utils Bug#11757855 - 49967: built-in libedit doesn't read 2011-04-29 18:52:46 +05:30
config/ac-macros Bug#57991: Compiler flag change build error : adler32.c 2010-12-07 13:06:20 -02:00
dbug Merge 2010-12-29 00:47:05 +01:00
Docs Makefile.am: 2008-04-08 11:44:18 +02:00
extra BUG#11762616: BUG#55229: 'POSTION' 2011-05-06 00:46:53 +01:00
include Fix for BUG#11755168 '46895: test "outfile_loaddata" fails (reproducible)'. 2011-05-16 22:04:01 +02:00
libmysql Bug#11900714 REMOVE LGPL LICENSED FILES IN MYSQL 5.1 2011-03-28 10:47:30 +02:00
libmysql_r Merge from mysql-5.0-bugteam. 2010-11-24 13:07:37 +03:00
libmysqld Bug#11764633 : 57491: THD->MAIN_DA.IS_OK() ASSERT IN EMBEDDED 2011-05-18 20:10:01 +05:30
man Merge 2010-12-29 00:47:05 +01:00
mysql-test Fix for bug #11762012 - "54553: INNODB ASSERTS IN 2011-05-26 17:14:47 +04:00
mysys Bug #11758687: 50924: object names not resolved correctly 2011-04-04 16:04:15 +03:00
netware Bug #45058 init_available_charsets uses double checked locking 2009-12-12 19:11:25 +01:00
plugin Bug #11763135: 55812: MYSQL AB SHOULD NOT BE AUTHOR, EVEN IN EXAMPLE 2011-03-21 17:54:40 +02:00
regex Fixed bug#58026 - massive recursion and crash in regular expression 2011-02-04 10:47:46 +06:00
scripts merge mysql-5.0-security->mysql-5.1-security 2011-03-21 16:03:35 +02:00
server-tools Merge 2010-12-29 00:47:05 +01:00
sql BUG#12574820: binlog.binlog_tmp_table timing out in daily and weekly trunk run 2011-05-26 12:50:43 +02:00
sql-bench merge fix 2009-07-03 14:12:35 +02:00
sql-common Bug#11889186 60503: CRASH IN MAKE_DATE_TIME WITH DATE_FORMAT / STR_TO_DATE COMBINATION 2011-04-27 11:35:57 +04:00
storage Fix for bug #11762012 - "54553: INNODB ASSERTS IN 2011-05-26 17:14:47 +04:00
strings auto-merge Bug#11762799/Bug#55436 2011-05-12 03:41:51 +01:00
support-files Fix Bug #56581 RPM scripts use hardcoded datadir location 2011-02-03 18:16:22 +01:00
tests Fixed Bug#11764168 "56976: SEVERE DENIAL OF SERVICE IN PREPARED STATEMENTS". 2011-03-15 17:36:12 +06:00
unittest Followup to Bug #11752069 (former bug 43152) 2011-02-16 18:19:10 +01:00
vio BUG#11762616: BUG#55229: 'POSTION' 2011-05-06 00:46:53 +01:00
win Added support for VS10. 2011-03-28 13:43:30 +03: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 2011-04-20 18:00:50 +02:00
.cvsignore Import changeset 2000-07-31 21:29:14 +02:00
CMakeLists.txt fixing 38697/11749301 2011-03-21 20:23:39 +01:00
configure.in Bug#11757855 - 49967: built-in libedit doesn't read 2011-04-29 18:52:46 +05:30
COPYING Use a new version of "COPYING", the GPL text. 2010-03-04 14:26:27 +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 2010-12-29 00:47:05 +01:00
README Removed the "Third-Party Component Notices" part from README 2011-03-16 23:07:05 +01:00

MySQL Server 5.1

This is a release of MySQL, a dual-license SQL database server.
For the avoidance of doubt, this particular copy of the software 
is released under the version 2 of the GNU General Public License. 
MySQL is brought to you by Oracle.

Copyright (c) 2000, 2011, Oracle and/or its affiliates. All rights reserved.

License information can be found in the COPYING file.

MySQL FOSS License Exception
We want free and open source software applications under certain
licenses to be able to use specified GPL-licensed MySQL client
libraries despite the fact that not all such FOSS licenses are
compatible with version 2 of the GNU General Public License.  
Therefore there are special exceptions to the terms and conditions 
of the GPLv2 as applied to these client libraries, which are 
identified and described in more detail in the FOSS License 
Exception at 
<http://www.mysql.com/about/legal/licensing/foss-exception.html>.

This distribution may include materials developed by third
parties. For license and attribution notices for these
materials, please refer to the documentation that accompanies
this distribution (see the "Licenses for Third-Party Components"
appendix) or view the online documentation at 
<http://dev.mysql.com/doc/>.

GPLv2 Disclaimer
For the avoidance of doubt, except that if any license choice
other than GPL or LGPL is available it will apply instead, 
Oracle elects to use only the General Public License version 2 
(GPLv2) at this time for any software where a choice of GPL 
license versions is made available with the language indicating 
that GPLv2 or any later version may be used, or where a choice 
of which version of the GPL is applied is otherwise unspecified.

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 Reference Manual sections of special interest:
- If you are migrating from an older version of MySQL, please 
  read the "Upgrading from..." section.
- 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 MySQL Change History 
  appendix.

You can browse the MySQL Reference Manual online or download it 
in any of several formats at the URL given earlier in this file.
Source distributions include a local copy of the manual in the
Docs directory.