[Groonga-mysql-commit] mroonga/mroonga [fix-for-visual-studio] [wrapper][fulltext] use trace macros.

Back to archive index

Kouhei Sutou null+****@clear*****
Thu Oct 4 10:25:26 JST 2012


Kouhei Sutou	2011-06-18 10:19:29 +0900 (Sat, 18 Jun 2011)

  New Revision: 1b803710a2cf6169915a076837bc7c92a497f600
  https://github.com/mroonga/mroonga/commit/1b803710a2cf6169915a076837bc7c92a497f600

  Log:
    [wrapper][fulltext] use trace macros.

  Modified files:
    ha_mroonga.cc

  Modified: ha_mroonga.cc (+10 -3)
===================================================================
--- ha_mroonga.cc    2011-06-18 09:44:35 +0900 (d81faf2)
+++ ha_mroonga.cc    2011-06-18 10:19:29 +0900 (f16d67a)
@@ -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 = {
-------------- next part --------------
HTML����������������������������...
下載 



More information about the Groonga-mysql-commit mailing list
Back to archive index