From 1eccd27d830bbfde81e3cddb4bb374a3bd4617fe Mon Sep 17 00:00:00 2001 From: "hf@deer.(none)" <> Date: Wed, 24 Mar 2004 19:04:57 +0400 Subject: [PATCH] Fix for #3067 Shouldn't be moved to 4.1 --- myisam/mi_check.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/myisam/mi_check.c b/myisam/mi_check.c index 61c98eb526f..078f7787dc3 100644 --- a/myisam/mi_check.c +++ b/myisam/mi_check.c @@ -1247,8 +1247,9 @@ int mi_repair(MI_CHECK *param, register MI_INFO *info, That is what the next line is for... (serg) */ - share->state.key_map= ((((ulonglong) 1L << share->base.keys)-1) & - param->keys_in_use); + if (param->testflag & T_CREATE_MISSING_KEYS) + share->state.key_map= ((((ulonglong) 1L << share->base.keys)-1) & + param->keys_in_use); info->state->key_file_length=share->base.keystart;