Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
M
MariaDB
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
nexedi
MariaDB
Commits
f92b7b1a
Commit
f92b7b1a
authored
Feb 26, 2019
by
Sergey Vojtovich
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Adieu LOCK_thread_count, COND_thread_count
parent
785092ee
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
15 deletions
+5
-15
sql/mysqld.cc
sql/mysqld.cc
+3
-12
sql/mysqld.h
sql/mysqld.h
+2
-3
No files found.
sql/mysqld.cc
View file @
f92b7b1a
...
...
@@ -689,9 +689,6 @@ static std::atomic<char*> shutdown_user;
pthread_key
(
THD
*
,
THR_THD
);
/** To be removed */
mysql_mutex_t
LOCK_thread_count
;
/*
LOCK_start_thread is used to syncronize thread start and stop with
other threads.
...
...
@@ -735,7 +732,7 @@ mysql_rwlock_t LOCK_grant, LOCK_sys_init_connect, LOCK_sys_init_slave;
mysql_rwlock_t
LOCK_ssl_refresh
;
mysql_rwlock_t
LOCK_all_status_vars
;
mysql_prlock_t
LOCK_system_variables_hash
;
mysql_cond_t
COND_
thread_count
,
COND_
start_thread
;
mysql_cond_t
COND_start_thread
;
pthread_t
signal_thread
;
pthread_attr_t
connection_attrib
;
mysql_mutex_t
LOCK_server_started
;
...
...
@@ -885,7 +882,7 @@ PSI_mutex_key key_BINLOG_LOCK_index, key_BINLOG_LOCK_xid_list,
key_structure_guard_mutex
,
key_TABLE_SHARE_LOCK_ha_data
,
key_LOCK_error_messages
,
key_LOCK_start_thread
,
key_LOCK_thread_c
ount
,
key_LOCK_thread_c
ache
,
key_LOCK_thread_cache
,
key_PARTITION_LOCK_auto_inc
;
PSI_mutex_key
key_RELAYLOG_LOCK_index
;
PSI_mutex_key
key_LOCK_relaylog_end_pos
;
...
...
@@ -977,7 +974,6 @@ static PSI_mutex_info all_server_mutexes[]=
{
&
key_LOCK_after_binlog_sync
,
"LOCK_after_binlog_sync"
,
PSI_FLAG_GLOBAL
},
{
&
key_LOCK_commit_ordered
,
"LOCK_commit_ordered"
,
PSI_FLAG_GLOBAL
},
{
&
key_LOCK_slave_background
,
"LOCK_slave_background"
,
PSI_FLAG_GLOBAL
},
{
&
key_LOCK_thread_count
,
"LOCK_thread_count"
,
PSI_FLAG_GLOBAL
},
{
&
key_LOCK_thread_cache
,
"LOCK_thread_cache"
,
PSI_FLAG_GLOBAL
},
{
&
key_PARTITION_LOCK_auto_inc
,
"HA_DATA_PARTITION::LOCK_auto_inc"
,
0
},
{
&
key_LOCK_slave_state
,
"LOCK_slave_state"
,
0
},
...
...
@@ -1036,7 +1032,7 @@ PSI_cond_key key_BINLOG_COND_xid_list,
key_relay_log_info_start_cond
,
key_relay_log_info_stop_cond
,
key_rpl_group_info_sleep_cond
,
key_TABLE_SHARE_cond
,
key_user_level_lock_cond
,
key_COND_thread_c
ount
,
key_COND_thread_c
ache
,
key_COND_flush_thread_cache
,
key_COND_thread_cache
,
key_COND_flush_thread_cache
,
key_COND_start_thread
,
key_COND_binlog_send
,
key_BINLOG_COND_queue_busy
;
PSI_cond_key
key_RELAYLOG_COND_relay_log_updated
,
...
...
@@ -1086,7 +1082,6 @@ static PSI_cond_info all_server_conds[]=
{
&
key_rpl_group_info_sleep_cond
,
"Rpl_group_info::sleep_cond"
,
0
},
{
&
key_TABLE_SHARE_cond
,
"TABLE_SHARE::cond"
,
0
},
{
&
key_user_level_lock_cond
,
"User_level_lock::cond"
,
0
},
{
&
key_COND_thread_count
,
"COND_thread_count"
,
PSI_FLAG_GLOBAL
},
{
&
key_COND_thread_cache
,
"COND_thread_cache"
,
PSI_FLAG_GLOBAL
},
{
&
key_COND_flush_thread_cache
,
"COND_flush_thread_cache"
,
PSI_FLAG_GLOBAL
},
{
&
key_COND_rpl_thread
,
"COND_rpl_thread"
,
0
},
...
...
@@ -2048,7 +2043,6 @@ static void clean_up_mutexes()
DBUG_ENTER
(
"clean_up_mutexes"
);
server_threads
.
destroy
();
mysql_rwlock_destroy
(
&
LOCK_grant
);
mysql_mutex_destroy
(
&
LOCK_thread_count
);
mysql_mutex_destroy
(
&
LOCK_thread_cache
);
mysql_mutex_destroy
(
&
LOCK_start_thread
);
mysql_mutex_destroy
(
&
LOCK_status
);
...
...
@@ -2084,7 +2078,6 @@ static void clean_up_mutexes()
mysql_mutex_destroy
(
&
LOCK_short_uuid_generator
);
mysql_mutex_destroy
(
&
LOCK_prepared_stmt_count
);
mysql_mutex_destroy
(
&
LOCK_error_messages
);
mysql_cond_destroy
(
&
COND_thread_count
);
mysql_cond_destroy
(
&
COND_thread_cache
);
mysql_cond_destroy
(
&
COND_start_thread
);
mysql_cond_destroy
(
&
COND_flush_thread_cache
);
...
...
@@ -4412,7 +4405,6 @@ static int init_thread_environment()
{
DBUG_ENTER
(
"init_thread_environment"
);
server_threads
.
init
();
mysql_mutex_init
(
key_LOCK_thread_count
,
&
LOCK_thread_count
,
MY_MUTEX_INIT_FAST
);
mysql_mutex_init
(
key_LOCK_thread_cache
,
&
LOCK_thread_cache
,
MY_MUTEX_INIT_FAST
);
mysql_mutex_init
(
key_LOCK_start_thread
,
&
LOCK_start_thread
,
MY_MUTEX_INIT_FAST
);
mysql_mutex_init
(
key_LOCK_status
,
&
LOCK_status
,
MY_MUTEX_INIT_FAST
);
...
...
@@ -4476,7 +4468,6 @@ static int init_thread_environment()
mysql_rwlock_init
(
key_rwlock_LOCK_sys_init_slave
,
&
LOCK_sys_init_slave
);
mysql_rwlock_init
(
key_rwlock_LOCK_ssl_refresh
,
&
LOCK_ssl_refresh
);
mysql_rwlock_init
(
key_rwlock_LOCK_grant
,
&
LOCK_grant
);
mysql_cond_init
(
key_COND_thread_count
,
&
COND_thread_count
,
NULL
);
mysql_rwlock_init
(
key_rwlock_LOCK_all_status_vars
,
&
LOCK_all_status_vars
);
mysql_cond_init
(
key_COND_thread_cache
,
&
COND_thread_cache
,
NULL
);
mysql_cond_init
(
key_COND_start_thread
,
&
COND_start_thread
,
NULL
);
...
...
sql/mysqld.h
View file @
f92b7b1a
...
...
@@ -383,7 +383,7 @@ extern PSI_cond_key key_BINLOG_COND_xid_list, key_BINLOG_update_cond,
key_rpl_group_info_sleep_cond
,
key_TABLE_SHARE_cond
,
key_user_level_lock_cond
,
key_COND_start_thread
,
key_COND_thread_c
ount
,
key_COND_thread_c
ache
,
key_COND_flush_thread_cache
;
key_COND_thread_cache
,
key_COND_flush_thread_cache
;
extern
PSI_cond_key
key_RELAYLOG_COND_relay_log_updated
,
key_RELAYLOG_COND_bin_log_updated
,
key_COND_wakeup_ready
,
key_COND_wait_commit
;
...
...
@@ -628,7 +628,6 @@ extern mysql_mutex_t
LOCK_global_system_variables
,
LOCK_user_conn
,
LOCK_prepared_stmt_count
,
LOCK_error_messages
,
LOCK_connection_count
,
LOCK_slave_background
;
extern
MYSQL_PLUGIN_IMPORT
mysql_mutex_t
LOCK_thread_count
;
extern
mysql_rwlock_t
LOCK_all_status_vars
;
extern
mysql_mutex_t
LOCK_start_thread
;
#ifdef HAVE_OPENSSL
...
...
@@ -640,7 +639,7 @@ extern mysql_cond_t COND_server_started;
extern
mysql_rwlock_t
LOCK_grant
,
LOCK_sys_init_connect
,
LOCK_sys_init_slave
;
extern
mysql_rwlock_t
LOCK_ssl_refresh
;
extern
mysql_prlock_t
LOCK_system_variables_hash
;
extern
mysql_cond_t
COND_
thread_count
,
COND_
start_thread
;
extern
mysql_cond_t
COND_start_thread
;
extern
mysql_cond_t
COND_manager
;
extern
mysql_cond_t
COND_slave_background
;
extern
Atomic_counter
<
uint32_t
>
thread_count
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment