summaryrefslogtreecommitdiff
path: root/myisam/mi_check.c
diff options
context:
space:
mode:
authorunknown <serg@serg.mylan>2003-11-14 22:08:45 +0100
committerunknown <serg@serg.mylan>2003-11-14 22:08:45 +0100
commita35ba0ea0ce87b54c65d451a50d7821ac0f92d4a (patch)
tree915a16b88e14417a579ddc4aadb9cdcdbf3bd4bc /myisam/mi_check.c
parent75392a0d2e4c7f95fa1490fed8203c9f2ffbee48 (diff)
downloadmariadb-git-a35ba0ea0ce87b54c65d451a50d7821ac0f92d4a.tar.gz
obligatory update checksum on repair, if it is obligatory verified on check.
Diffstat (limited to 'myisam/mi_check.c')
-rw-r--r--myisam/mi_check.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/myisam/mi_check.c b/myisam/mi_check.c
index a4ae7b25dbb..466defe8fbc 100644
--- a/myisam/mi_check.c
+++ b/myisam/mi_check.c
@@ -1153,6 +1153,9 @@ int mi_repair(MI_CHECK *param, register MI_INFO *info,
}
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)
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 */
+ 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_param, sizeof(sort_param));
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 */
+ if (info->s->options & (HA_OPTION_CHECKSUM | HA_OPTION_COMPRESS_RECORD))
+ param->testflag|=T_CALC_CHECKSUM;
+
bzero((char*)&sort_info,sizeof(sort_info));
if (!(sort_info.key_block=
alloc_key_blocks(param,