summaryrefslogtreecommitdiff
path: root/heap/hp_update.c
diff options
context:
space:
mode:
Diffstat (limited to 'heap/hp_update.c')
-rw-r--r--heap/hp_update.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/heap/hp_update.c b/heap/hp_update.c
index 8cf3e4d4b8d..b0a1926e14a 100644
--- a/heap/hp_update.c
+++ b/heap/hp_update.c
@@ -46,6 +46,10 @@ int heap_update(HP_INFO *info, const byte *old, const byte *heap_new)
memcpy(pos,heap_new,(size_t) share->reclength);
if (++(share->records) == share->blength) share->blength+= share->blength;
+
+#if !defined(DBUG_OFF) && defined(EXTRA_HEAP_DEBUG)
+ DBUG_EXECUTE("check_heap",heap_check_heap(info, 0););
+#endif
DBUG_RETURN(0);
err: