Navigation Menu

Skip to content

Commit

Permalink
mysql8 wrapper: use mrn_destroy() instead of raw delete
Browse files Browse the repository at this point in the history
  • Loading branch information
kou committed Aug 10, 2018
1 parent 8751316 commit d717f03
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions ha_mroonga.cpp
Expand Up @@ -5515,7 +5515,7 @@ int ha_mroonga::wrapper_delete_table(const char *name,
#else
error = hnd->ha_delete_table(name);
#endif
delete hnd;
mrn_destroy(hnd);

DBUG_RETURN(error);
}
Expand Down Expand Up @@ -13054,7 +13054,7 @@ handler *ha_mroonga::wrapper_clone(const char *name, MEM_ROOT *mem_root)
#endif
if (error != 0)
{
delete cloned_handler;
mrn_destroy(cloned_handler);
DBUG_RETURN(NULL);
}
DBUG_RETURN(cloned_handler);
Expand Down Expand Up @@ -14373,14 +14373,14 @@ int ha_mroonga::wrapper_rename_table(const char *from, const char *to,

if (error != 0)
{
delete hnd;
mrn_destroy(hnd);
DBUG_RETURN(error);
}

error = wrapper_rename_index(from, to, tmp_share,
from_table_name, to_table_name);

delete hnd;
mrn_destroy(hnd);
DBUG_RETURN(error);
}

Expand Down

0 comments on commit d717f03

Please sign in to comment.