1
0
mirror of https://github.com/MariaDB/server.git synced 2025-07-30 16:24:05 +03:00

MDEV-7437 remove suport for "atomics" with rwlocks

This commit is contained in:
Sergei Golubchik
2015-01-12 17:03:45 +01:00
parent 1f0ad6c6b3
commit e695db0f2d
40 changed files with 143 additions and 740 deletions

View File

@ -1732,7 +1732,7 @@ void close_temporary_table(THD *thd, TABLE *table,
{
/* natural invariant of temporary_tables */
DBUG_ASSERT(slave_open_temp_tables || !thd->temporary_tables);
thread_safe_decrement32(&slave_open_temp_tables, &thread_running_lock);
thread_safe_decrement32(&slave_open_temp_tables);
table->in_use= 0; // No statistics
}
thd->unlock_temporary_tables();
@ -5721,7 +5721,7 @@ TABLE *open_table_uncached(THD *thd, handlerton *hton,
thd->temporary_tables->prev= 0;
if (thd->rgi_slave)
{
thread_safe_increment32(&slave_open_temp_tables, &thread_running_lock);
thread_safe_increment32(&slave_open_temp_tables);
}
thd->unlock_temporary_tables();
}