diff options
Diffstat (limited to 'myisam/mi_check.c')
-rw-r--r-- | myisam/mi_check.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/myisam/mi_check.c b/myisam/mi_check.c index cbfc5d3878c..b394fb25e97 100644 --- a/myisam/mi_check.c +++ b/myisam/mi_check.c @@ -1182,7 +1182,8 @@ int mi_repair(MI_CHECK *param, register MI_INFO *info, That is the next line for... (serg) */ - share->state.key_map= ((ulonglong)1L << share->base.keys)-1; + share->state.key_map= (((ulonglong) 1L << share->base.keys)-1 & + param->keys_in_use); info->state->key_file_length=share->base.keystart; |