summaryrefslogtreecommitdiff
path: root/myisam
diff options
context:
space:
mode:
authorhf@deer.(none) <>2004-03-24 19:04:57 +0400
committerhf@deer.(none) <>2004-03-24 19:04:57 +0400
commit1eccd27d830bbfde81e3cddb4bb374a3bd4617fe (patch)
treeaa103e62a9c39c4fde55e6aaafc77dea6a04c359 /myisam
parent23a74015f18542362fc5171ddd0f0620871f4814 (diff)
downloadmariadb-git-1eccd27d830bbfde81e3cddb4bb374a3bd4617fe.tar.gz
Fix for #3067
Shouldn't be moved to 4.1
Diffstat (limited to 'myisam')
-rw-r--r--myisam/mi_check.c5
1 files 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;