summaryrefslogtreecommitdiff
path: root/myisam/myisamchk.c
diff options
context:
space:
mode:
authorunknown <monty@donna.mysql.com>2001-01-03 18:02:56 +0200
committerunknown <monty@donna.mysql.com>2001-01-03 18:02:56 +0200
commit47521c20a06107b7c8f7d185f01c13ba206cca0f (patch)
treec0eef5742a8c0ef7b7f59902aab48f1316a4773a /myisam/myisamchk.c
parentae84eba8bfed52478ea1ee2d4f4bbcfc041ec00f (diff)
downloadmariadb-git-47521c20a06107b7c8f7d185f01c13ba206cca0f.tar.gz
Fixed bug in myisamchk -r -k#
Docs/manual.texi: Changelog myisam/mi_check.c: Fixed bug in -r -k# myisam/myisamchk.c: Fixed bug in -r -k#
Diffstat (limited to 'myisam/myisamchk.c')
-rw-r--r--myisam/myisamchk.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/myisam/myisamchk.c b/myisam/myisamchk.c
index 1201b7b6657..cb463e338bb 100644
--- a/myisam/myisamchk.c
+++ b/myisam/myisamchk.c
@@ -200,7 +200,7 @@ static struct option long_options[] =
static void print_version(void)
{
- printf("%s Ver 1.38 for %s at %s\n",my_progname,SYSTEM_TYPE,
+ printf("%s Ver 1.39 for %s at %s\n",my_progname,SYSTEM_TYPE,
MACHINE_TYPE);
}
@@ -651,8 +651,13 @@ static int myisamchk(MI_CHECK *param, my_string filename)
if (param->testflag & (T_REP+T_REP_BY_SORT+T_SORT_RECORDS+T_SORT_INDEX))
{
if (param->testflag & (T_REP+T_REP_BY_SORT))
+ {
+ ulonglong tmp=share->state.key_map;
share->state.key_map= (((ulonglong) 1 << share->base.keys)-1)
& param->keys_in_use;
+ if (tmp != share->state.key_map)
+ info->update|=HA_STATE_CHANGED;
+ }
VOID(fn_format(fixed_name,filename,"",MI_NAME_IEXT,
4+ (param->opt_follow_links ? 16 : 0)));