mirror of
https://github.com/MariaDB/server.git
synced 2025-01-21 22:34:18 +01:00
branches/zip: Refuse fast index creation if newraw or innodb_force_recovery
have been set. ha_innobase::add_index(), ha_innobase::prepare_drop_index(), ha_innobase::final_drop_index(): Return HA_ERR_WRONG_COMMAND if newraw or innodb_force_recovery have been set.
This commit is contained in:
parent
061b72f106
commit
9ab3abd6ef
1 changed files with 11 additions and 0 deletions
|
@ -8327,6 +8327,10 @@ ha_innobase::add_index(
|
|||
ut_a(key_info);
|
||||
ut_a(num_of_keys);
|
||||
|
||||
if (srv_created_new_raw || srv_force_recovery) {
|
||||
DBUG_RETURN(HA_ERR_WRONG_COMMAND);
|
||||
}
|
||||
|
||||
update_thd(ha_thd());
|
||||
|
||||
heap = mem_heap_create(1024);
|
||||
|
@ -8601,6 +8605,9 @@ ha_innobase::prepare_drop_index(
|
|||
ut_ad(table);
|
||||
ut_ad(key_num);
|
||||
ut_ad(num_of_keys);
|
||||
if (srv_created_new_raw || srv_force_recovery) {
|
||||
DBUG_RETURN(HA_ERR_WRONG_COMMAND);
|
||||
}
|
||||
|
||||
thd = ha_thd();
|
||||
|
||||
|
@ -8746,6 +8753,10 @@ ha_innobase::final_drop_index(
|
|||
DBUG_ENTER("ha_innobase::final_drop_index");
|
||||
ut_ad(table);
|
||||
|
||||
if (srv_created_new_raw || srv_force_recovery) {
|
||||
DBUG_RETURN(HA_ERR_WRONG_COMMAND);
|
||||
}
|
||||
|
||||
thd = ha_thd();
|
||||
|
||||
trx = check_trx_exists(thd);
|
||||
|
|
Loading…
Add table
Reference in a new issue