obligatory update checksum on repair, if it is obligatory verified on check.
This commit is contained in:
parent
75392a0d2e
commit
a35ba0ea0c
@ -1153,6 +1153,9 @@ int mi_repair(MI_CHECK *param, register MI_INFO *info,
|
|||||||
}
|
}
|
||||||
param->testflag|=T_REP; /* for easy checking */
|
param->testflag|=T_REP; /* for easy checking */
|
||||||
|
|
||||||
|
if (info->s->options & (HA_OPTION_CHECKSUM | HA_OPTION_COMPRESS_RECORD))
|
||||||
|
param->testflag|=T_CALC_CHECKSUM;
|
||||||
|
|
||||||
if (!param->using_global_keycache)
|
if (!param->using_global_keycache)
|
||||||
VOID(init_key_cache(param->use_buffers));
|
VOID(init_key_cache(param->use_buffers));
|
||||||
|
|
||||||
@ -1820,6 +1823,9 @@ int mi_repair_by_sort(MI_CHECK *param, register MI_INFO *info,
|
|||||||
}
|
}
|
||||||
param->testflag|=T_REP; /* for easy checking */
|
param->testflag|=T_REP; /* for easy checking */
|
||||||
|
|
||||||
|
if (info->s->options & (HA_OPTION_CHECKSUM | HA_OPTION_COMPRESS_RECORD))
|
||||||
|
param->testflag|=T_CALC_CHECKSUM;
|
||||||
|
|
||||||
bzero((char*)&sort_info,sizeof(sort_info));
|
bzero((char*)&sort_info,sizeof(sort_info));
|
||||||
bzero((char *)&sort_param, sizeof(sort_param));
|
bzero((char *)&sort_param, sizeof(sort_param));
|
||||||
if (!(sort_info.key_block=
|
if (!(sort_info.key_block=
|
||||||
@ -2189,6 +2195,9 @@ int mi_repair_parallel(MI_CHECK *param, register MI_INFO *info,
|
|||||||
}
|
}
|
||||||
param->testflag|=T_REP; /* for easy checking */
|
param->testflag|=T_REP; /* for easy checking */
|
||||||
|
|
||||||
|
if (info->s->options & (HA_OPTION_CHECKSUM | HA_OPTION_COMPRESS_RECORD))
|
||||||
|
param->testflag|=T_CALC_CHECKSUM;
|
||||||
|
|
||||||
bzero((char*)&sort_info,sizeof(sort_info));
|
bzero((char*)&sort_info,sizeof(sort_info));
|
||||||
if (!(sort_info.key_block=
|
if (!(sort_info.key_block=
|
||||||
alloc_key_blocks(param,
|
alloc_key_blocks(param,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user