mirror of
https://github.com/MariaDB/server.git
synced 2026-05-15 19:37:16 +02:00
ALTER TABLE ... DISABLE/ENABLE KEYS, code cleanup
myisam/ft_boolean_search.c: qsort_cmp -> qsort_cmp2 myisam/mi_extra.c: ALTER TABLE ... ENABLE/DISABLE KEYS mi_extra(HA_EXTRA_NO_KEYS) disables only only non-unique keys myisam/myisamlog.c: qsort_cmp -> qsort_cmp2 sql/ha_myisam.cc: ALTER TABLE ENABLE/DISABLE KEYS deactivate_non_unique_index(HA_POS_ERROR) to force deactivation sql/ha_myisam.h: ALTER TABLE ... DISABLE/ENABLE KEYS sql/sql_table.cc: ALTER TABLE ... DISABLE/ENABLE KEYS
This commit is contained in:
parent
83e3058c3e
commit
1c8902e4ef
6 changed files with 35 additions and 12 deletions
|
|
@ -37,11 +37,11 @@ extern ulong myisam_recover_options;
|
|||
class ha_myisam: public handler
|
||||
{
|
||||
MI_INFO *file;
|
||||
uint int_option_flag;
|
||||
uint int_option_flag,enable_activate_all_index;
|
||||
int repair(THD *thd, MI_CHECK ¶m, bool optimize);
|
||||
|
||||
public:
|
||||
ha_myisam(TABLE *table): handler(table), file(0),
|
||||
ha_myisam(TABLE *table): handler(table), file(0),enable_activate_all_index(1),
|
||||
int_option_flag(HA_READ_NEXT | HA_READ_PREV | HA_READ_RND_SAME |
|
||||
HA_KEYPOS_TO_RNDPOS | HA_READ_ORDER | HA_LASTKEY_ORDER |
|
||||
HA_HAVE_KEY_READ_ONLY | HA_READ_NOT_EXACT_KEY |
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue