Navigation Menu

Skip to content

Commit

Permalink
mysql56 wrapper: use copy based alter table for now
Browse files Browse the repository at this point in the history
refs #1548
  • Loading branch information
kou committed Nov 19, 2012
1 parent a1fb5e7 commit 3fbe64c
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion ha_mroonga.cpp
Expand Up @@ -11649,8 +11649,18 @@ enum_alter_inplace_result ha_mroonga::wrapper_check_if_supported_inplace_alter(
TABLE *altered_table,
Alter_inplace_info *ha_alter_info)
{
enum_alter_inplace_result result;
MRN_DBUG_ENTER_METHOD();

uint n_keys = altered_table->s->keys;
for (uint i = 0; i < n_keys; ++i) {
const KEY *key = &(altered_table->key_info[i]);
if (key->flags & HA_FULLTEXT || mrn_is_geo_key(key)) {
// TODO: Use HA_ALTER_INPLACE_SHARED_LOCK instead of NOT_SUPPORTED
DBUG_RETURN(HA_ALTER_INPLACE_NOT_SUPPORTED);
}
}

enum_alter_inplace_result result;
MRN_SET_WRAP_SHARE_KEY(share, table->s);
MRN_SET_WRAP_TABLE_KEY(this, table);
result = wrap_handler->check_if_supported_inplace_alter(altered_table,
Expand Down

0 comments on commit 3fbe64c

Please sign in to comment.