mariadb/storage
dlenev@mockturtle.local 15fd42b7dd Fix for bug #35733 "main.symlink.test fails".
The problem was that symlink.test failed due to debug assertions or
due to errors emitted for wrong statements (in non-debug builds)
if 6.0 version of server was run with --thread-handling=pool-of-threads
option.

The above problems were caused by that on the one hand code mi_create()
which handles case when error is returned relies on my_errno being set
to appropriate non-0 value, but on the other it has not done this
in case when error was emitted due to discovery that share for table
which we are going to create is already present in the list of open
shares. Running server with pool-of-threads option just exposed this
bug since in this scheduler mode my_errno is reset to 0 when connection
(THD) is reattached to the "real" thread.

This fix ensures that code in mi_create() properly sets my_errno in
the case described above.

Since original reason that caused this bug to be exposed in 6.0 tree
might also under very special conditions lead to incorrect behavior
of earlier versions of server (i.e. to errors emitted for wrong
statements) this patch is also being pushed into 5.1 tree.

No test case is present as this code is already covered by a test
case + pushbuild options combination in 6.0.
2008-04-07 12:59:57 +04:00
..
archive Merge trift2.:/MySQL/M51/mysql-5.1 2008-03-27 12:45:16 +01:00
blackhole Merge bk-internal.mysql.com:/home/bk/mysql-5.1-build 2008-03-06 15:13:14 +00:00
csv Merge pcg5ppc.xiphis.org:/Network/Servers/anubis.xiphis.org/home/antony/work/mysql-5.1-engines 2008-03-07 13:46:29 -08:00
example Merge trift2.:/MySQL/M51/mysql-5.1 2008-03-14 14:41:08 +01:00
federated Merge trift2.:/MySQL/M51/mysql-5.1 2008-03-27 12:45:16 +01:00
heap Merge kaamos.(none):/data/src/mysql-5.1 2008-03-12 11:19:46 +03:00
innobase Merge mysql.com:/misc/mysql/mysql-5.1 2008-03-27 23:34:12 +01:00
myisam Fix for bug #35733 "main.symlink.test fails". 2008-04-07 12:59:57 +04:00
myisammrg Merge stella.local:/home2/mydev/mysql-5.0-axmrg 2008-03-14 19:30:49 +01:00
ndb Merge trift2.:/MySQL/M51/ndb-decl-5.1 2008-03-27 13:20:24 +01:00
Makefile.am Many files: 2006-12-31 02:29:11 +01:00