diff options
author | unknown <heikki@hundin.mysql.fi> | 2005-08-19 12:54:13 +0300 |
---|---|---|
committer | unknown <heikki@hundin.mysql.fi> | 2005-08-19 12:54:13 +0300 |
commit | 1568be583be2a715994967679fe418eec174a311 (patch) | |
tree | 52c14b12fa7f5e5e443b82c379a0beca3ffed14d /innobase/btr | |
parent | 9e9d610d30f7328f7dc274b4458589fc93462c89 (diff) | |
download | mariadb-git-1568be583be2a715994967679fe418eec174a311.tar.gz |
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
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: */ |