mirror of
https://github.com/MariaDB/server.git
synced 2026-01-06 05:22:24 +03:00
Applying InnoDB plugin snashot
Detailed revision comments: r6099 | jyang | 2009-10-22 05:58:39 +0300 (Thu, 22 Oct 2009) | 7 lines branches/zip: Port bug #46000 related changes from 5.1 to zip branch. Due to different code path for creating index in zip branch comparing to 5.1), the index reserved name check function is extended to be used in ha_innobase::add_index(). rb://190 Approved by: Marko
This commit is contained in:
@@ -628,7 +628,7 @@ ha_innobase::add_index(
|
||||
ulint num_created = 0;
|
||||
ibool dict_locked = FALSE;
|
||||
ulint new_primary;
|
||||
ulint error;
|
||||
int error;
|
||||
|
||||
DBUG_ENTER("ha_innobase::add_index");
|
||||
ut_a(table);
|
||||
@@ -656,9 +656,13 @@ ha_innobase::add_index(
|
||||
innodb_table = indexed_table
|
||||
= dict_table_get(prebuilt->table->name, FALSE);
|
||||
|
||||
/* Check that index keys are sensible */
|
||||
|
||||
error = innobase_check_index_keys(key_info, num_of_keys);
|
||||
/* Check if the index name is reserved. */
|
||||
if (innobase_index_name_is_reserved(trx, key_info, num_of_keys)) {
|
||||
error = -1;
|
||||
} else {
|
||||
/* Check that index keys are sensible */
|
||||
error = innobase_check_index_keys(key_info, num_of_keys);
|
||||
}
|
||||
|
||||
if (UNIV_UNLIKELY(error)) {
|
||||
err_exit:
|
||||
|
||||
Reference in New Issue
Block a user