summaryrefslogtreecommitdiff
path: root/myisam
diff options
context:
space:
mode:
authorunknown <serg@serg.mylan>2003-12-11 16:47:50 +0100
committerunknown <serg@serg.mylan>2003-12-11 16:47:50 +0100
commit22c12eaeb296b55d6121531bea44a97fb5297f04 (patch)
treed47903951f7c39e0965b9fb9c8c39e758d6d873e /myisam
parentba249c10c41f4dde9f9fe9dafa50a7cb30bc33fa (diff)
downloadmariadb-git-22c12eaeb296b55d6121531bea44a97fb5297f04.tar.gz
chk_del() should not check key delete-chain
make a test for -inf more portable (-Inf) client/mysqldump.c: make a test for -inf more portable (-Inf) myisam/mi_check.c: chk_del() should not check key delete-chain
Diffstat (limited to 'myisam')
-rw-r--r--myisam/mi_check.c19
1 files changed, 12 insertions, 7 deletions
diff --git a/myisam/mi_check.c b/myisam/mi_check.c
index 7108fdcba9e..007ae950990 100644
--- a/myisam/mi_check.c
+++ b/myisam/mi_check.c
@@ -131,15 +131,8 @@ int chk_del(MI_CHECK *param, register MI_INFO *info, uint test_flag)
char buff[22],buff2[22];
DBUG_ENTER("chk_del");
- if (!(test_flag & T_SILENT))
- puts("- check key delete-chain");
-
LINT_INIT(old_link);
param->record_checksum=0;
- param->key_file_blocks=info->s->base.keystart;
- for (j=0 ; j < info->s->state.header.max_block_size ; j++)
- if (check_k_link(param,info,j))
- goto wrong;
delete_link_length=((info->s->options & HA_OPTION_PACK_RECORD) ? 20 :
info->s->rec_reflength+1);
@@ -362,6 +355,18 @@ int chk_key(MI_CHECK *param, register MI_INFO *info)
char buff[22],buff2[22];
DBUG_ENTER("chk_key");
+ if (!(param->testflag & T_SILENT))
+ puts("- check key delete-chain");
+
+ param->key_file_blocks=info->s->base.keystart;
+ for (key=0 ; key < info->s->state.header.max_block_size ; key++)
+ if (check_k_link(param,info,key))
+ {
+ if (param->testflag & T_VERBOSE) puts("");
+ mi_check_print_error(param,"key delete-link-chain corrupted");
+ DBUG_RETURN(-1);
+ }
+
if (!(param->testflag & T_SILENT)) puts("- check index reference");
all_keydata=all_totaldata=key_totlength=0;