diff options
author | Monty <monty@mariadb.org> | 2017-12-08 11:36:18 +0200 |
---|---|---|
committer | Monty <monty@mariadb.org> | 2017-12-08 11:38:22 +0200 |
commit | c4581735d0210beba0733b30df8dd994786663fe (patch) | |
tree | 52a902698e82c2a875f525c52e0505b7e9ebbdd5 /sql/sql_class.cc | |
parent | 6d63a03490298a8b7246e7f4516eb383534f8e8c (diff) | |
download | mariadb-git-c4581735d0210beba0733b30df8dd994786663fe.tar.gz |
Cleanups
- Remove not used thd_rpl_is_parallel()
- Remove not used mysql_notify_thread_having_shared_lock()
- Remove not needed LOCK_thread_count from MYSQL_BIN_LOG::reset_logs()
- LOCK_thread_count is not protecting against rollback, so this
code and comment is not needed
- Remove mutex_locks in slave.cc that are not needed.
Added THD::assert_not_linked() to ensure that it was safe to remove
- Fixed not repeatable test load_data_stmt_view
- Updated binlog_killed to test removal of mutex
(thanks to Andrei Elkin for test)
- More code comments
Diffstat (limited to 'sql/sql_class.cc')
-rw-r--r-- | sql/sql_class.cc | 7 |
1 files changed, 0 insertions, 7 deletions
diff --git a/sql/sql_class.cc b/sql/sql_class.cc index 9181e3c96d6..628671802a0 100644 --- a/sql/sql_class.cc +++ b/sql/sql_class.cc @@ -4775,13 +4775,6 @@ extern "C" int thd_slave_thread(const MYSQL_THD thd) return(thd->slave_thread); } -/* Returns true for a worker thread in parallel replication. */ -extern "C" int thd_rpl_is_parallel(const MYSQL_THD thd) -{ - return thd->rgi_slave && thd->rgi_slave->is_parallel_exec; -} - - /* Returns high resolution timestamp for the start of the current query. */ extern "C" unsigned long long thd_start_utime(const MYSQL_THD thd) |