From 3b1a6ddfe8b0df58783af6e5fba9c788ae2bf360 Mon Sep 17 00:00:00 2001 From: unknown Date: Fri, 1 Jun 2001 19:38:47 +0300 Subject: Added --skip-symlinks Don't force repair of tables that are not closed properly. Docs/manual.texi: Added information about symbolic links. include/my_sys.h: symbolic link support myisam/mi_check.c: Don't force repair of tables that are not closed properly. myisam/myisamchk.c: Version number change. mysys/my_static.c: symbolic link support mysys/my_symlink2.c: Disabling of symbolic link support sql/mysqld.cc: Disabling of symbolic link support --- myisam/mi_check.c | 5 +++++ myisam/myisamchk.c | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) (limited to 'myisam') 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); } -- cgit v1.2.1