diff options
Diffstat (limited to 'myisam')
-rw-r--r-- | myisam/mi_check.c | 5 | ||||
-rw-r--r-- | myisam/myisamchk.c | 2 |
2 files changed, 6 insertions, 1 deletions
diff --git a/myisam/mi_check.c b/myisam/mi_check.c index 64fbafca022..c6e07445bcf 100644 --- a/myisam/mi_check.c +++ b/myisam/mi_check.c @@ -110,9 +110,14 @@ int chk_status(MI_CHECK *param, register MI_INFO *info) "Table is marked as crashed"); if (share->state.open_count != (uint) (info->s->global_changed ? 1 : 0)) { + /* Don't count this as a real warning, as check can correct this ! */ + uint save=param->warning_printed; mi_check_print_warning(param, "%d clients is using or hasn't closed the table properly", share->state.open_count); + /* If this will be fixed by the check, forget the warning */ + if (param->testflag & T_UPDATE_STATE) + param->warning_printed=save; } return 0; } diff --git a/myisam/myisamchk.c b/myisam/myisamchk.c index cbdd6a26767..06d34c10659 100644 --- a/myisam/myisamchk.c +++ b/myisam/myisamchk.c @@ -201,7 +201,7 @@ static struct option long_options[] = static void print_version(void) { - printf("%s Ver 1.45 for %s at %s\n",my_progname,SYSTEM_TYPE, + printf("%s Ver 1.46 for %s at %s\n",my_progname,SYSTEM_TYPE, MACHINE_TYPE); } |