Comment 3 for bug 1011047

Revision history for this message
yinfeng (yinfeng-zwx) wrote : Re: mysqld can't startup when a plugin had being installed

a simple patch :
init_global_table_stats should be called before plugin_init

--- a/sql/mysqld.cc 2011-12-20 06:38:58.000000000 +0800
+++ b/sql/mysqld.cc 2012-06-10 12:31:49.000000000 +0800
@@ -3850,7 +3850,7 @@
 #ifdef HAVE_REPLICATION
   init_slave_list();
 #endif
-
+ init_global_table_stats();
   /* Setup logs */

   /*
@@ -4064,7 +4064,6 @@
   /* We have to initialize the storage engines before CSV logging */
   TC_init();

- init_global_table_stats();
   init_global_index_stats();

   if (ha_init())