From 0299ec29d4af3230741a62d5443c0562269b05b2 Mon Sep 17 00:00:00 2001 From: Sergei Golubchik Date: Sat, 17 Jul 2021 08:57:29 +0200 Subject: cleanup: MY_BITMAP mutex in about a hundred of users of MY_BITMAP, only two were using its built-in mutex, and only one of those two was actually needing it. Remove the mutex from MY_BITMAP, remove all associated conditions and checks in bitmap functions. Use an external LOCK_temp_pool mutex and temp_pool_set_next/temp_pool_clear_bit acccessors. Remove bitmap_init/bitmap_free, always use my_* versions. --- sql/mysqld.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'sql/mysqld.h') diff --git a/sql/mysqld.h b/sql/mysqld.h index d0a33fabb51..12dca3d012e 100644 --- a/sql/mysqld.h +++ b/sql/mysqld.h @@ -100,7 +100,9 @@ extern CHARSET_INFO *error_message_charset_info; extern CHARSET_INFO *character_set_filesystem; -extern MY_BITMAP temp_pool; +void temp_pool_clear_bit(uint bit); +uint temp_pool_set_next(); + extern bool opt_large_files; extern bool opt_update_log, opt_bin_log, opt_error_log, opt_bin_log_compress; extern uint opt_bin_log_compress_min_len; -- cgit v1.2.1