[Groonga-mysql-commit] mroonga/mroonga [master] auto_repair: use correct return value variable name

Back to archive index

null+****@clear***** null+****@clear*****
2012年 4月 16日 (月) 09:52:52 JST


Kouhei Sutou	2012-04-16 09:52:52 +0900 (Mon, 16 Apr 2012)

  New Revision: 89f57a99f463dd0542a4023658741641a6684bd3

  Log:
    auto_repair: use correct return value variable name

  Modified files:
    ha_mroonga.cpp

  Modified: ha_mroonga.cpp (+9 -11)
===================================================================
--- ha_mroonga.cpp    2012-04-11 10:45:35 +0900 (24a3705)
+++ ha_mroonga.cpp    2012-04-16 09:52:52 +0900 (6335267)
@@ -10219,36 +10219,34 @@ bool ha_mroonga::is_crashed() const
 
 bool ha_mroonga::wrapper_auto_repair() const
 {
-  bool res;
+  bool crashed;
   MRN_DBUG_ENTER_METHOD();
   MRN_SET_WRAP_SHARE_KEY(share, table->s);
   MRN_SET_WRAP_TABLE_KEY(this, table);
-  res = wrap_handler->auto_repair();
+  crashed = wrap_handler->auto_repair();
   MRN_SET_BASE_SHARE_KEY(share, table->s);
   MRN_SET_BASE_TABLE_KEY(this, table);
-  DBUG_RETURN(res);
+  DBUG_RETURN(crashed);
 }
 
 bool ha_mroonga::storage_auto_repair() const
 {
   MRN_DBUG_ENTER_METHOD();
-  // XXX: success is valid variable name?
-  bool success = handler::auto_repair();
-  DBUG_RETURN(success);
+  bool crashed = handler::auto_repair();
+  DBUG_RETURN(crashed);
 }
 
 bool ha_mroonga::auto_repair() const
 {
   MRN_DBUG_ENTER_METHOD();
-  // XXX: success is valid variable name?
-  bool success;
+  bool crashed;
   if (share->wrapper_mode)
   {
-    success = wrapper_auto_repair();
+    crashed = wrapper_auto_repair();
   } else {
-    success = storage_auto_repair();
+    crashed = storage_auto_repair();
   }
-  DBUG_RETURN(success);
+  DBUG_RETURN(crashed);
 }
 
 int ha_mroonga::wrapper_disable_indexes(uint mode)




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