[Groonga-mysql-commit] mroonga/mroonga [master] fix wrong variable type. fix #1032

アーカイブの一覧に戻る

null+****@clear***** null+****@clear*****
2011年 7月 13日 (水) 19:42:54 JST


Kouhei Sutou	2011-07-13 10:42:54 +0000 (Wed, 13 Jul 2011)

  New Revision: 05d4221e40b30e5f6a9b7322b948295559b2d922

  Log:
    fix wrong variable type. fix #1032

  Modified files:
    ha_mroonga.cc

  Modified: ha_mroonga.cc (+4 -4)
===================================================================
--- ha_mroonga.cc    2011-07-13 07:23:27 +0000 (73c0c05)
+++ ha_mroonga.cc    2011-07-13 10:42:54 +0000 (c2569f7)
@@ -4854,14 +4854,14 @@ handler *ha_mroonga::storage_clone(const char *name, MEM_ROOT *mem_root)
 handler *ha_mroonga::clone(const char *name, MEM_ROOT *mem_root)
 {
   MRN_DBUG_ENTER_METHOD();
-  int error;
+  handler *cloned_handler;
   if (share->wrapper_mode)
   {
-    error = wrapper_clone(name, mem_root);
+    cloned_handler = wrapper_clone(name, mem_root);
   } else {
-    error = storage_clone(name, mem_root);
+    cloned_handler = storage_clone(name, mem_root);
   }
-  DBUG_RETURN(error);
+  DBUG_RETURN(cloned_handler);
 }
 #else
 handler *ha_mroonga::wrapper_clone(MEM_ROOT *mem_root)




Groonga-mysql-commit メーリングリストの案内
アーカイブの一覧に戻る