innodb_expand_import holds data dictionary mutex while scanning .ibd file
ALTER TABLE ... IMPORT TABLESPACE is holding the data dictionary mutex during the entire import operation.
This becomes a problem for innodb_
The only problem with temporarily releasing the mutex is that changing the table's metadata while it's being imported may lead to data dictionary corruption. But in 5.1 any query trying to open that table will fail with an error, because InnoDB sets the ibd_file_missing flag for the in-memory table object until import is complete. In 5.5 queries will block on the metadata lock set by ALTER TABLE. So the table's metadata is protected even without holding the data dictionary mutex.
- Percona core: Pending requested 2011-12-28
Diff: 90 lines (+19/-5)4 files modifiedPercona-Server/storage/innodb_plugin/dict/dict0load.c (+2/-2)