[Groonga-mysql-commit] mroonga/mroonga [fix-for-visual-studio] Reduce needless const remove cast

Back to archive index

Kouhei Sutou null+****@clear*****
Thu Oct 4 10:41:57 JST 2012


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

  New Revision: 62ceedc22dd752a745bec38a65e192a7bfed9e95
  https://github.com/mroonga/mroonga/commit/62ceedc22dd752a745bec38a65e192a7bfed9e95

  Log:
    Reduce needless const remove cast

  Modified files:
    ha_mroonga.cc

  Modified: ha_mroonga.cc (+10 -3)
===================================================================
--- ha_mroonga.cc    2012-04-09 16:08:38 +0900 (4bdcd1c)
+++ ha_mroonga.cc    2012-04-09 16:18:45 +0900 (f6124c3)
@@ -920,7 +920,7 @@ static handler *mrn_handler_create(handlerton *hton, TABLE_SHARE *share, MEM_ROO
   DBUG_RETURN(new_handler);
 }
 
-static void mrn_drop_db(handlerton *hton, char *path)
+static void mrn_drop_db(const char *path)
 {
   MRN_DBUG_ENTER_FUNCTION();
   mrn::PathMapper mapper(path);
@@ -943,6 +943,13 @@ static void mrn_drop_db(handlerton *hton, char *path)
   DBUG_VOID_RETURN;
 }
 
+static void mrn_drop_database(handlerton *hton, char *path)
+{
+  MRN_DBUG_ENTER_FUNCTION();
+  mrn_drop_db(path);
+  DBUG_VOID_RETURN;
+}
+
 static int mrn_close_connection(handlerton *hton, THD *thd)
 {
   MRN_DBUG_ENTER_FUNCTION();
@@ -1292,7 +1299,7 @@ static int mrn_init(void *p)
   hton->state = SHOW_OPTION_YES;
   hton->create = mrn_handler_create;
   hton->flags = 0;
-  hton->drop_database = mrn_drop_db;
+  hton->drop_database = mrn_drop_database;
   hton->close_connection = mrn_close_connection;
   hton->flush_logs = mrn_flush_logs;
   hton->alter_table_flags = mrn_alter_table_flags;
@@ -3740,7 +3747,7 @@ int ha_mroonga::delete_table(const char *name)
   mrn_free_tmp_table_share(tmp_table_share);
   mrn_open_mutex_unlock();
   if (is_temporary_table_name(name)) {
-    mrn_drop_db(mrn_hton_ptr, (char *) name);
+    mrn_drop_db(name);
   }
   DBUG_RETURN(error);
 }
-------------- next part --------------
HTML����������������������������...
Download 



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