From 1568be583be2a715994967679fe418eec174a311 Mon Sep 17 00:00:00 2001 From: unknown Date: Fri, 19 Aug 2005 12:54:13 +0300 Subject: btr0sea.c: Add diagnostic code to track a crash in adaptive hash indexes; the crash may happen if block->index == NULL innobase/btr/btr0sea.c: Add diagnostic code to track a crash in adaptive hash indexes; the crash may happen if block->index == NULL --- innobase/btr/btr0sea.c | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'innobase/btr') diff --git a/innobase/btr/btr0sea.c b/innobase/btr/btr0sea.c index f705fee4275..7a4e92a672a 100644 --- a/innobase/btr/btr0sea.c +++ b/innobase/btr/btr0sea.c @@ -964,6 +964,13 @@ btr_search_drop_page_hash_index( heap = NULL; offsets = NULL; + if (block->index == NULL) { + + mem_analyze_corruption((byte*)block); + + ut_a(block->index != NULL); + } + while (!page_rec_is_supremum(rec)) { /* FIXME: in a mixed tree, not all records may have enough ordering fields: */ -- cgit v1.2.1