mirror of
https://github.com/MariaDB/server.git
synced 2025-01-18 04:53:01 +01:00
Merge from mysql-5.1-innodb to mysql-5.5-innodb
This commit is contained in:
commit
57325925db
1 changed files with 8 additions and 4 deletions
|
@ -786,10 +786,6 @@ err_exit:
|
|||
|
||||
ut_ad(error == DB_SUCCESS);
|
||||
|
||||
/* We will need to rebuild index translation table. Set
|
||||
valid index entry count in the translation table to zero */
|
||||
share->idx_trans_tbl.index_count = 0;
|
||||
|
||||
/* Commit the data dictionary transaction in order to release
|
||||
the table locks on the system tables. This means that if
|
||||
MySQL crashes while creating a new primary key inside
|
||||
|
@ -915,6 +911,14 @@ error:
|
|||
}
|
||||
|
||||
convert_error:
|
||||
if (error == DB_SUCCESS) {
|
||||
/* Build index is successful. We will need to
|
||||
rebuild index translation table. Reset the
|
||||
index entry count in the translation table
|
||||
to zero, so that translation table will be rebuilt */
|
||||
share->idx_trans_tbl.index_count = 0;
|
||||
}
|
||||
|
||||
error = convert_error_code_to_mysql(error,
|
||||
innodb_table->flags,
|
||||
user_thd);
|
||||
|
|
Loading…
Reference in a new issue