mirror of
https://github.com/MariaDB/server.git
synced 2026-04-25 09:45:31 +02:00
SHOW EXPLAIN DELETE, post merge fixes
- Fix asserts, make sure that mysql_delete() operates on thd->apc_target correctly* in all kinds of special cases * - correctly means that one must switch it OFF iff it was switched ON. - Added a few asserts to catch similar errors.
This commit is contained in:
parent
99890bafe3
commit
9718b9763d
3 changed files with 11 additions and 0 deletions
|
|
@ -70,6 +70,7 @@ void Apc_target::enable()
|
|||
void Apc_target::disable()
|
||||
{
|
||||
bool process= FALSE;
|
||||
DBUG_ASSERT(enabled);
|
||||
mysql_mutex_lock(LOCK_thd_data_ptr);
|
||||
if (!(--enabled))
|
||||
process= TRUE;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue