summaryrefslogtreecommitdiff
path: root/myisam/mi_check.c
diff options
context:
space:
mode:
authorunknown <hf@deer.(none)>2004-03-24 19:04:57 +0400
committerunknown <hf@deer.(none)>2004-03-24 19:04:57 +0400
commitd94e4be36ec8ebd196c79a89b0141ad85d760c19 (patch)
treeaa103e62a9c39c4fde55e6aaafc77dea6a04c359 /myisam/mi_check.c
parent5a88bc3c87fe182af8a5ad5035c38361138ca891 (diff)
downloadmariadb-git-d94e4be36ec8ebd196c79a89b0141ad85d760c19.tar.gz
Fix for #3067
Shouldn't be moved to 4.1 myisam/mi_check.c: only set key_map if necessary
Diffstat (limited to 'myisam/mi_check.c')
-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;