diff options
author | unknown <monty@narttu.mysql.fi> | 2003-09-16 14:45:42 +0300 |
---|---|---|
committer | unknown <monty@narttu.mysql.fi> | 2003-09-16 14:45:42 +0300 |
commit | bfc155f01a64c023a0dff2cf553a3120073019ab (patch) | |
tree | f47610ffbc38c307598c3b55a00e6cce7785886c /myisam/mi_check.c | |
parent | dae83b4acfc50204f07ce8fd58427a73eba874da (diff) | |
download | mariadb-git-bfc155f01a64c023a0dff2cf553a3120073019ab.tar.gz |
More explicit error messages from myisamchk
myisam/mi_check.c:
More explicit error messages
myisam/mi_dynrec.c:
More comments
Diffstat (limited to 'myisam/mi_check.c')
-rw-r--r-- | myisam/mi_check.c | 35 |
1 files changed, 27 insertions, 8 deletions
diff --git a/myisam/mi_check.c b/myisam/mi_check.c index f5b0a1aabaa..a4ae7b25dbb 100644 --- a/myisam/mi_check.c +++ b/myisam/mi_check.c @@ -200,21 +200,33 @@ int chk_del(MI_CHECK *param, register MI_INFO *info, uint test_flag) empty+=info->s->base.pack_reclength; } } + if (test_flag & T_VERBOSE) + puts("\n"); if (empty != info->state->empty) { - if (test_flag & T_VERBOSE) puts(""); mi_check_print_warning(param, - "Not used space is supposed to be: %s but is: %s", - llstr(info->state->empty,buff), - llstr(empty,buff2)); - info->state->empty=empty; + "Found %s deleted space in delete link chain. Should be %s", + llstr(empty,buff2), + llstr(info->state->empty,buff)); } - if (i != 0 || next_link != HA_OFFSET_ERROR) + if (next_link != HA_OFFSET_ERROR) + { + mi_check_print_error(param, + "Found more than the expected %s deleted rows in delete link chain", + llstr(info->state->del, buff)); goto wrong; - - if (test_flag & T_VERBOSE) puts("\n"); + } + if (i != 0) + { + mi_check_print_error(param, + "Found %s deleted rows in delete link chain. Should be %s", + llstr(info->state->del - i, buff2), + llstr(info->state->del, buff)); + goto wrong; + } } DBUG_RETURN(0); + wrong: param->testflag|=T_RETRY_WITHOUT_QUICK; if (test_flag & T_VERBOSE) puts(""); @@ -1040,6 +1052,13 @@ int chk_data_link(MI_CHECK *param, MI_INFO *info,int extend) } } + if (del_length != info->state->empty) + { + mi_check_print_warning(param, + "Found %s deleted space. Should be %s", + llstr(del_length,llbuff2), + llstr(info->state->empty,llbuff)); + } if (used+empty+del_length != info->state->data_file_length) { mi_check_print_warning(param, |