summaryrefslogtreecommitdiff
path: root/sql/my_apc.cc
diff options
context:
space:
mode:
Diffstat (limited to 'sql/my_apc.cc')
-rw-r--r--sql/my_apc.cc1
1 files changed, 1 insertions, 0 deletions
diff --git a/sql/my_apc.cc b/sql/my_apc.cc
index 3bad1331364..dcb1e3d99b1 100644
--- a/sql/my_apc.cc
+++ b/sql/my_apc.cc
@@ -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;