mirror of
https://github.com/MariaDB/server.git
synced 2025-08-08 11:22:35 +03:00
cleanup: consolidate binlog-related THD::*_used into one bitmap
This commit is contained in:
committed by
Oleksandr Byelkin
parent
4ce1470a70
commit
c38b8f49b8
@@ -427,7 +427,7 @@ bool THD::open_temporary_table(TABLE_LIST *tl)
|
||||
#endif
|
||||
|
||||
table->query_id= query_id;
|
||||
thread_specific_used= true;
|
||||
used|= THREAD_SPECIFIC_USED;
|
||||
|
||||
/* It is neither a derived table nor non-updatable view. */
|
||||
tl->updatable= true;
|
||||
@@ -1355,7 +1355,7 @@ bool THD::log_events_and_free_tmp_shares()
|
||||
{
|
||||
if (IS_USER_TABLE(share))
|
||||
{
|
||||
bool save_thread_specific_used= thread_specific_used;
|
||||
used_t save_thread_specific_used= used & THREAD_SPECIFIC_USED;
|
||||
my_thread_id save_pseudo_thread_id= variables.pseudo_thread_id;
|
||||
char db_buf[FN_REFLEN];
|
||||
String db(db_buf, sizeof(db_buf), system_charset_info);
|
||||
@@ -1405,7 +1405,7 @@ bool THD::log_events_and_free_tmp_shares()
|
||||
clear_error();
|
||||
CHARSET_INFO *cs_save= variables.character_set_client;
|
||||
variables.character_set_client= system_charset_info;
|
||||
thread_specific_used= true;
|
||||
used|= THREAD_SPECIFIC_USED;
|
||||
|
||||
Query_log_event qinfo(this, s_query.ptr(),
|
||||
s_query.length() - 1 /* to remove trailing ',' */,
|
||||
@@ -1438,7 +1438,7 @@ bool THD::log_events_and_free_tmp_shares()
|
||||
get_stmt_da()->set_overwrite_status(false);
|
||||
}
|
||||
variables.pseudo_thread_id= save_pseudo_thread_id;
|
||||
thread_specific_used= save_thread_specific_used;
|
||||
used = (used & ~THREAD_SPECIFIC_USED) | save_thread_specific_used;
|
||||
}
|
||||
else
|
||||
{
|
||||
|
Reference in New Issue
Block a user