Merge from mysql-5.1 to mysql-5.5.

This commit is contained in:
Annamalai Gurusami 2012-05-16 16:33:22 +05:30
commit 31a6bcbee4

View file

@ -708,6 +708,10 @@ ha_innobase::add_index(
ut_a(indexed_table == prebuilt->table);
if (indexed_table->tablespace_discarded) {
DBUG_RETURN(-1);
}
/* Check that index keys are sensible */
error = innobase_check_index_keys(key_info, num_of_keys, prebuilt->table);