[Groonga-mysql-commit] mroonga/mroonga [fix-for-visual-studio] fix wrong variable type. fix #1032

Back to archive index

Kouhei Sutou null+****@clear*****
Thu Oct 4 10:27:18 JST 2012


Kouhei Sutou	2011-07-13 19:42:54 +0900 (Wed, 13 Jul 2011)

  New Revision: 05d4221e40b30e5f6a9b7322b948295559b2d922
  https://github.com/mroonga/mroonga/commit/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 16:23:27 +0900 (73c0c05)
+++ ha_mroonga.cc    2011-07-13 19:42:54 +0900 (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)
-------------- next part --------------
HTML����������������������������...
Download 



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