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())
a simple patch : table_stats should be called before plugin_init
init_global_
--- a/sql/mysqld.cc 2011-12-20 06:38:58.000000000 +0800 slave_list( ); table_stats( );
+++ b/sql/mysqld.cc 2012-06-10 12:31:49.000000000 +0800
@@ -3850,7 +3850,7 @@
#ifdef HAVE_REPLICATION
init_
#endif
-
+ init_global_
/* Setup logs */
/*
@@ -4064,7 +4064,6 @@
/* We have to initialize the storage engines before CSV logging */
TC_init();
- init_global_ table_stats( ); global_ index_stats( );
init_
if (ha_init())