diff options
Diffstat (limited to 'myisam/mi_check.c')
-rw-r--r-- | myisam/mi_check.c | 5 |
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; |