Navigation Menu

Skip to content

Commit

Permalink
support repair/optimize table for wrapper mode.
Browse files Browse the repository at this point in the history
  • Loading branch information
Kentoku committed Nov 30, 2011
1 parent 99079aa commit 588db76
Showing 1 changed file with 3 additions and 15 deletions.
18 changes: 3 additions & 15 deletions ha_mroonga.cc
Expand Up @@ -1377,7 +1377,7 @@ ulonglong ha_mroonga::wrapper_table_flags() const
MRN_SET_WRAP_TABLE_KEY(this, table);
table_flags = wrap_handler->ha_table_flags() |
HA_CAN_FULLTEXT | HA_PRIMARY_KEY_REQUIRED_FOR_DELETE |
HA_CAN_RTREEKEYS;
HA_CAN_RTREEKEYS | HA_CAN_REPAIR;
MRN_SET_BASE_SHARE_KEY(share, table->s);
MRN_SET_BASE_TABLE_KEY(this, table);
DBUG_RETURN(table_flags);
Expand Down Expand Up @@ -7555,14 +7555,8 @@ int ha_mroonga::check(THD* thd, HA_CHECK_OPT* check_opt)

int ha_mroonga::wrapper_repair(THD* thd, HA_CHECK_OPT* check_opt)
{
int error = 0;
MRN_DBUG_ENTER_METHOD();
MRN_SET_WRAP_SHARE_KEY(share, table->s);
MRN_SET_WRAP_TABLE_KEY(this, table);
error = wrap_handler->ha_repair(thd, check_opt);
MRN_SET_BASE_SHARE_KEY(share, table->s);
MRN_SET_BASE_TABLE_KEY(this, table);
DBUG_RETURN(error);
DBUG_RETURN(HA_ADMIN_TRY_ALTER);
}

int ha_mroonga::storage_repair(THD* thd, HA_CHECK_OPT* check_opt)
Expand Down Expand Up @@ -7650,14 +7644,8 @@ int ha_mroonga::analyze(THD* thd, HA_CHECK_OPT* check_opt)

int ha_mroonga::wrapper_optimize(THD* thd, HA_CHECK_OPT* check_opt)
{
int error = 0;
MRN_DBUG_ENTER_METHOD();
MRN_SET_WRAP_SHARE_KEY(share, table->s);
MRN_SET_WRAP_TABLE_KEY(this, table);
error = wrap_handler->ha_optimize(thd, check_opt);
MRN_SET_BASE_SHARE_KEY(share, table->s);
MRN_SET_BASE_TABLE_KEY(this, table);
DBUG_RETURN(error);
DBUG_RETURN(HA_ADMIN_TRY_ALTER);
}

int ha_mroonga::storage_optimize(THD* thd, HA_CHECK_OPT* check_opt)
Expand Down

0 comments on commit 588db76

Please sign in to comment.