diff options
Diffstat (limited to 'heap/hp_write.c')
-rw-r--r-- | heap/hp_write.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/heap/hp_write.c b/heap/hp_write.c index 806f40e5be5..18fa95e7760 100644 --- a/heap/hp_write.c +++ b/heap/hp_write.c @@ -60,7 +60,11 @@ int heap_write(HP_INFO *info, const byte *record) info->current_ptr=pos; info->current_hash_ptr=0; info->update|=HA_STATE_AKTIV; +#if !defined(DBUG_OFF) && defined(EXTRA_HEAP_DEBUG) + DBUG_EXECUTE("check_heap",heap_check_heap(info, 0);); +#endif DBUG_RETURN(0); + err: DBUG_PRINT("info",("Duplicate key: %d",key)); info->errkey= key; @@ -74,6 +78,7 @@ err: *((byte**) pos)=share->del_link; share->del_link=pos; pos[share->reclength]=0; /* Record deleted */ + DBUG_RETURN(my_errno); } /* heap_write */ |