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:
Sergey Petrunya 2013-05-27 13:53:18 +04:00
commit 9718b9763d
3 changed files with 11 additions and 0 deletions

View file

@ -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;