Commit 4bc6ab74 authored by unknown's avatar unknown

Fix for #3067

Shouldn't be moved to 4.1


myisam/mi_check.c:
  only set key_map if necessary
parent 609c03c4
...@@ -1247,8 +1247,9 @@ int mi_repair(MI_CHECK *param, register MI_INFO *info, ...@@ -1247,8 +1247,9 @@ int mi_repair(MI_CHECK *param, register MI_INFO *info,
That is what the next line is for... (serg) That is what the next line is for... (serg)
*/ */
share->state.key_map= ((((ulonglong) 1L << share->base.keys)-1) & if (param->testflag & T_CREATE_MISSING_KEYS)
param->keys_in_use); share->state.key_map= ((((ulonglong) 1L << share->base.keys)-1) &
param->keys_in_use);
info->state->key_file_length=share->base.keystart; info->state->key_file_length=share->base.keystart;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment