[Groonga-mysql-commit] mroonga/mroonga [master] [wrapper] fix style.

Back to archive index

null+****@clear***** null+****@clear*****
2011年 7月 13日 (水) 16:00:05 JST


Kouhei Sutou	2011-07-13 07:00:05 +0000 (Wed, 13 Jul 2011)

  New Revision: 9792d71227a6ab45690b3ad30aeea3327fa49f2c

  Log:
    [wrapper] fix style.

  Modified files:
    ha_mroonga.cc

  Modified: ha_mroonga.cc (+7 -5)
===================================================================
--- ha_mroonga.cc    2011-07-13 05:36:19 +0000 (5679066)
+++ ha_mroonga.cc    2011-07-13 07:00:05 +0000 (db2799c)
@@ -4117,13 +4117,15 @@ int ha_mroonga::read_range_next()
 int ha_mroonga::wrapper_ft_init()
 {
   MRN_DBUG_ENTER_METHOD();
+  int error;
   cur = grn_table_cursor_open(ctx, matched_record_keys, NULL, 0, NULL, 0, 0,
-    -1, 0);
-  if (ctx->rc) {
-    my_message(ER_ERROR_ON_READ, ctx->errbuf, MYF(0));
-    DBUG_RETURN(ER_ERROR_ON_READ);
+                              -1, 0);
+  if (ctx->rc)
+  {
+    error = ER_ERROR_ON_READ;
+    my_message(error, ctx->errbuf, MYF(0));
   }
-  DBUG_RETURN(0);
+  DBUG_RETURN(error);
 }
 
 int ha_mroonga::storage_ft_init()




Groonga-mysql-commit メーリングリストの案内
Back to archive index