Commit 9cf9b9c3 authored by marko's avatar marko

branches/zip: Correct minor mistakes made in r2390.

i_s_compression_fill_low(): Do not acquire or release the buffer pool
mutex.  The page_zip_stat[] is not protected by any mutex.

i_s_innodb_compression, i_s_innodb_compression_reset: Change the
description to say "compression" instead of "compressed buffer pool".
parent bd8d5d3e
...@@ -1060,8 +1060,6 @@ i_s_compression_fill_low( ...@@ -1060,8 +1060,6 @@ i_s_compression_fill_low(
DBUG_RETURN(0); DBUG_RETURN(0);
} }
buf_pool_mutex_enter();
for (uint i = 0; i < PAGE_ZIP_NUM_SSIZE - 1; i++) { for (uint i = 0; i < PAGE_ZIP_NUM_SSIZE - 1; i++) {
page_zip_stat_t* zip_stat = &page_zip_stat[i]; page_zip_stat_t* zip_stat = &page_zip_stat[i];
...@@ -1091,7 +1089,6 @@ i_s_compression_fill_low( ...@@ -1091,7 +1089,6 @@ i_s_compression_fill_low(
} }
} }
buf_pool_mutex_exit();
DBUG_RETURN(status); DBUG_RETURN(status);
} }
...@@ -1179,7 +1176,7 @@ UNIV_INTERN struct st_mysql_plugin i_s_innodb_compression = ...@@ -1179,7 +1176,7 @@ UNIV_INTERN struct st_mysql_plugin i_s_innodb_compression =
/* general descriptive text (for SHOW PLUGINS) */ /* general descriptive text (for SHOW PLUGINS) */
/* const char* */ /* const char* */
STRUCT_FLD(descr, "Statistics for the InnoDB compressed buffer pool"), STRUCT_FLD(descr, "Statistics for the InnoDB compression"),
/* the plugin license (PLUGIN_LICENSE_XXX) */ /* the plugin license (PLUGIN_LICENSE_XXX) */
/* int */ /* int */
...@@ -1228,7 +1225,7 @@ UNIV_INTERN struct st_mysql_plugin i_s_innodb_compression_reset = ...@@ -1228,7 +1225,7 @@ UNIV_INTERN struct st_mysql_plugin i_s_innodb_compression_reset =
/* general descriptive text (for SHOW PLUGINS) */ /* general descriptive text (for SHOW PLUGINS) */
/* const char* */ /* const char* */
STRUCT_FLD(descr, "Statistics for the InnoDB compressed buffer pool;" STRUCT_FLD(descr, "Statistics for the InnoDB compression;"
" reset cumulated counts"), " reset cumulated counts"),
/* the plugin license (PLUGIN_LICENSE_XXX) */ /* the plugin license (PLUGIN_LICENSE_XXX) */
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment