Navigation Menu

Skip to content

Commit

Permalink
Remove an unused parameter
Browse files Browse the repository at this point in the history
  • Loading branch information
kou committed Sep 25, 2013
1 parent 38ede94 commit b3a1eb6
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 16 deletions.
18 changes: 3 additions & 15 deletions ha_mroonga.cpp
Expand Up @@ -3754,7 +3754,7 @@ int ha_mroonga::wrapper_open(const char *name, int mode, uint test_if_locked)
if (error)
DBUG_RETURN(error);

error = wrapper_open_indexes(name, false);
error = wrapper_open_indexes(name);
if (error) {
grn_obj_unlink(ctx, grn_table);
grn_table = NULL;
Expand Down Expand Up @@ -3836,7 +3836,7 @@ int ha_mroonga::wrapper_open(const char *name, int mode, uint test_if_locked)
DBUG_RETURN(error);
}

int ha_mroonga::wrapper_open_indexes(const char *name, bool ignore_open_error)
int ha_mroonga::wrapper_open_indexes(const char *name)
{
int error;

Expand Down Expand Up @@ -3880,12 +3880,6 @@ int ha_mroonga::wrapper_open_indexes(const char *name, bool ignore_open_error)
if (ctx->rc) {
DBUG_PRINT("info",
("mroonga: sql_command=%u", thd_sql_command(ha_thd())));
if (ignore_open_error)
{
DBUG_PRINT("info", ("mroonga: continue"));
grn_index_tables[i] = NULL;
continue;
}
error = ER_CANT_OPEN_FILE;
my_message(error, ctx->errbuf, MYF(0));
goto error;
Expand All @@ -3905,12 +3899,6 @@ int ha_mroonga::wrapper_open_indexes(const char *name, bool ignore_open_error)
if (ctx->rc) {
DBUG_PRINT("info",
("mroonga: sql_command=%u", thd_sql_command(ha_thd())));
if (ignore_open_error)
{
DBUG_PRINT("info", ("mroonga: continue"));
grn_index_columns[i] = NULL;
continue;
}
error = ER_CANT_OPEN_FILE;
my_message(error, ctx->errbuf, MYF(0));
grn_obj_unlink(ctx, grn_index_tables[i]);
Expand Down Expand Up @@ -12344,7 +12332,7 @@ int ha_mroonga::wrapper_recreate_indexes(THD *thd)
NULL, share, mapper.table_name());
if (error)
DBUG_RETURN(error);
error = wrapper_open_indexes(table_share->normalized_path.str, false);
error = wrapper_open_indexes(table_share->normalized_path.str);
if (error)
DBUG_RETURN(error);
error = wrapper_fill_indexes(thd, key_info, grn_index_columns, n_keys);
Expand Down
2 changes: 1 addition & 1 deletion ha_mroonga.hpp
Expand Up @@ -711,7 +711,7 @@ class ha_mroonga: public handler
int storage_delete_table(const char *name, MRN_SHARE *tmp_share,
const char *table_name);
int wrapper_open(const char *name, int mode, uint test_if_locked);
int wrapper_open_indexes(const char *name, bool ignore_open_error);
int wrapper_open_indexes(const char *name);
int storage_open(const char *name, int mode, uint test_if_locked);
int open_table(const char *name);
int storage_open_columns(void);
Expand Down

0 comments on commit b3a1eb6

Please sign in to comment.