mariadb/storage
Jon Olav Hauglid fc6ef378d4 Bug#11815600 [ERROR] INNODB COULD NOT FIND INDEX PRIMARY
KEY NO 0 FOR TABLE IN ERROR LOG 

With the changes made by the patches for Bug#11751388 and
Bug#11784056, concurrent reads are allowed while secondary
indexes are created in InnoDB. This means that the metadata
lock on the affected table is not upgraded to exclusive
until the .FRM is updated at the end of ALTER TABLE processing.

The problem was that if this lock upgrade failed for some
reason (e.g. timeout), the index information in the server
and inside InnoDB would be out of sync. This would happen
since the add index operation already was committed inside 
InnoDB but the table metadata inside the server had not been
updated yet.

This patch fixes the problem by (for now) reverting the
effects of the patches for Bug#11751388 and Bug#11784056.
Concurrent reads will now again be blocked during creation
of secondary indexes in InnoDB.

Test case added to innodb_mysql_lock.test.
2011-03-09 16:06:13 +01:00
..
archive BUG#58205 - Valgrind failure in fn_format when called from 2010-12-01 15:56:46 +03:00
blackhole WL#5665: Removal of the autotools-based build system 2010-11-20 12:47:50 -02:00
csv WL#5665: Removal of the autotools-based build system 2010-11-20 12:47:50 -02:00
example WL#5665: Removal of the autotools-based build system 2010-11-20 12:47:50 -02:00
federated WL#5665: Removal of the autotools-based build system 2010-11-20 12:47:50 -02:00
heap Remove configuration preprocessor symbols 'THREAD' 2011-01-11 10:07:37 +01:00
innobase Bug#11815600 [ERROR] INNODB COULD NOT FIND INDEX PRIMARY 2011-03-09 16:06:13 +01:00
myisam Fix for BUG#59894 2011-02-11 15:00:09 +01:00
myisammrg Fix for BUG#59894 2011-02-11 15:00:09 +01:00
ndb BUG#57953 my_load_defaults return junk argument ----args-separator---- to caller 2011-01-17 15:44:37 +08:00
perfschema Bug #58699 cannot build with gcc dbg on solaris 2010-12-21 13:00:26 +01:00