diff options
author | heikki@hundin.mysql.fi <> | 2005-08-19 12:54:13 +0300 |
---|---|---|
committer | heikki@hundin.mysql.fi <> | 2005-08-19 12:54:13 +0300 |
commit | d9bbf7bc53b6618f77cfcb5802a5459c1aac844e (patch) | |
tree | 52c14b12fa7f5e5e443b82c379a0beca3ffed14d /innobase/btr | |
parent | 20a052880f4f28021653a6cd71dcc08d58d314fe (diff) | |
download | mariadb-git-d9bbf7bc53b6618f77cfcb5802a5459c1aac844e.tar.gz |
btr0sea.c:
Add diagnostic code to track a crash in adaptive hash indexes; the crash may happen if block->index == NULL
Diffstat (limited to 'innobase/btr')
-rw-r--r-- | innobase/btr/btr0sea.c | 7 |
1 files changed, 7 insertions, 0 deletions
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: */ |