summaryrefslogtreecommitdiff
path: root/mysql-test/t/partition_innodb-master.opt
diff options
context:
space:
mode:
authorMattias Jonsson <mattias.jonsson@sun.com>2010-01-18 17:49:18 +0100
committerMattias Jonsson <mattias.jonsson@sun.com>2010-01-18 17:49:18 +0100
commiteab2be0aeed0459c505578a716f8b0ae88a8f365 (patch)
tree83e3df645c84493c160956ef4d6a123d0f29e13b /mysql-test/t/partition_innodb-master.opt
parent0305aea88a220ff9080432a65d50cb30493f3109 (diff)
downloadmariadb-git-eab2be0aeed0459c505578a716f8b0ae88a8f365.tar.gz
Bug#47343: InnoDB fails to clean-up after lock wait timeout on
REORGANIZE PARTITION There were several problems which lead to this this, all related to bad error handling. 1) There was several bugs preventing the ddl-log to be used for cleaning up created files on error. 2) The error handling after the copy partition rows did not close and unlock the tables, resulting in deletion of partitions which were in use, which lead InnoDB to put the partition to drop in a background queue. sql/ha_partition.cc: Bug#47343: InnoDB fails to clean-up after lock wait timeout on REORGANIZE PARTITION Better error handling, if partition has been created/opened/locked then make sure it is unlocked and closed before returning error. The delete of the newly created partition is handled by the ddl-log. sql/sql_parse.cc: Bug#47343: InnoDB fails to clean-up after lock wait timeout on REORGANIZE PARTITION Fix a bug found when experimenting, thd could really be NULL here, as mentioned in the function header. sql/sql_partition.cc: Bug#47343: InnoDB fails to clean-up after lock wait timeout on REORGANIZE PARTITION Used the correct .frm shadow name to put into the ddl-log. Really use the ddl-log to handle errors. sql/sql_table.cc: Bug#47343: InnoDB fails to clean-up after lock wait timeout on REORGANIZE PARTITION Fixes of the ddl-log when used as error recovery (no crash). When executing an entry from memory (not read from disk) the name_len was not set correctly.
Diffstat (limited to 'mysql-test/t/partition_innodb-master.opt')
-rw-r--r--mysql-test/t/partition_innodb-master.opt1
1 files changed, 1 insertions, 0 deletions
diff --git a/mysql-test/t/partition_innodb-master.opt b/mysql-test/t/partition_innodb-master.opt
new file mode 100644
index 00000000000..462f8fbe828
--- /dev/null
+++ b/mysql-test/t/partition_innodb-master.opt
@@ -0,0 +1 @@
+--innodb_lock_wait_timeout=1