mirror of
https://github.com/MariaDB/server.git
synced 2025-07-30 16:24:05 +03:00
Merge 10.4 into 10.5
The functional changes of commit 5836191c8f
(MDEV-21168) are omitted due to MDEV-742 having addressed the issue.
This commit is contained in:
@ -1139,9 +1139,7 @@ TABLE *THD::open_temporary_table(TMP_TABLE_SHARE *share,
|
||||
|
||||
/* Increment Slave_open_temp_table_definitions status variable count. */
|
||||
if (rgi_slave)
|
||||
{
|
||||
thread_safe_increment32(&slave_open_temp_tables);
|
||||
}
|
||||
slave_open_temp_tables++;
|
||||
|
||||
DBUG_PRINT("tmptable", ("Opened table: '%s'.'%s table: %p",
|
||||
table->s->db.str,
|
||||
@ -1247,7 +1245,7 @@ void THD::close_temporary_table(TABLE *table)
|
||||
/* Natural invariant of temporary_tables */
|
||||
DBUG_ASSERT(slave_open_temp_tables || !temporary_tables);
|
||||
/* Decrement Slave_open_temp_table_definitions status variable count. */
|
||||
thread_safe_decrement32(&slave_open_temp_tables);
|
||||
slave_open_temp_tables--;
|
||||
}
|
||||
|
||||
DBUG_VOID_RETURN;
|
||||
|
Reference in New Issue
Block a user