Navigation Menu

Skip to content

Commit

Permalink
[wrapper][fulltext] use trace macros.
Browse files Browse the repository at this point in the history
  • Loading branch information
kou committed Jun 18, 2011
1 parent 574abde commit 1b80371
Showing 1 changed file with 10 additions and 3 deletions.
13 changes: 10 additions & 3 deletions ha_mroonga.cc
Expand Up @@ -827,33 +827,40 @@ mysql_declare_plugin_end;

static int mrn_wrapper_ft_read_next(FT_INFO *handler, char *record)
{
return HA_ERR_END_OF_FILE;
MRN_DBUG_ENTER_FUNCTION();
DBUG_RETURN(HA_ERR_END_OF_FILE);
}

static float mrn_wrapper_ft_find_relevance(FT_INFO *handler, uchar *record,
uint length)
{
MRN_DBUG_ENTER_FUNCTION();
st_mrn_ft_info *info = (st_mrn_ft_info *)handler;
return (float) -1.0;
DBUG_RETURN((float)-1.0);
}

static void mrn_wrapper_ft_close_search(FT_INFO *handler)
{
MRN_DBUG_ENTER_FUNCTION();
st_mrn_ft_info *info = (st_mrn_ft_info *)handler;
grn_obj_unlink(info->ctx, info->result);
info->ctx = NULL;
info->result = NULL;
info->rid = GRN_ID_NIL;
delete info;
DBUG_VOID_RETURN;
}

static float mrn_wrapper_ft_get_relevance(FT_INFO *handler)
{
return (float) -1.0;
MRN_DBUG_ENTER_FUNCTION();
DBUG_RETURN((float)-1.0);
}

static void mrn_wrapper_ft_reinit_search(FT_INFO *handler)
{
MRN_DBUG_ENTER_FUNCTION();
DBUG_VOID_RETURN;
}

static _ft_vft mrn_wrapper_ft_vft = {
Expand Down

0 comments on commit 1b80371

Please sign in to comment.