mirror of
https://github.com/MariaDB/server.git
synced 2026-04-22 08:15:31 +02:00
Additions for CHECK table + update of benchmarks
Docs/manual.texi: Updated for 3.23.23 myisam/mi_check.c: Fix for CHECK table sql-bench/bench-init.pl.sh: Fix of benchmarks for PostgreSQL 7.0.2 sql-bench/server-cfg.sh: Fix of benchmarks for PostgreSQL 7.0.2 sql-bench/test-insert.sh: Fix of benchmarks for PostgreSQL 7.0.2 sql-bench/test-select.sh: Fix of benchmarks for PostgreSQL 7.0.2 sql/ha_myisam.cc: Fix for CHECK table sql/handler.h: Fix for CHECK table sql/lex.h: Fix for CHECK table sql/sql_load.cc: Fix bug in delayed keys sql/sql_table.cc: Fix for CHECK table sql/sql_yacc.yy: Fix for CHECK table sql/structs.h: Fix wrong type
This commit is contained in:
parent
e318f3a607
commit
7496ec3173
13 changed files with 141 additions and 68 deletions
|
|
@ -339,7 +339,14 @@ int chk_key(MI_CHECK *param, register MI_INFO *info)
|
|||
{
|
||||
param->key_crc[key]=0;
|
||||
if (!(((ulonglong) 1 << key) & share->state.key_map))
|
||||
{
|
||||
/* Remember old statistics for key */
|
||||
memcpy((char*) rec_per_key_part,
|
||||
(char*) share->state.rec_per_key_part+
|
||||
(uint) (rec_per_key_part - param->rec_per_key_part),
|
||||
keyinfo->keysegs*sizeof(*rec_per_key_part));
|
||||
continue;
|
||||
}
|
||||
found_keys++;
|
||||
|
||||
param->record_checksum=init_checksum;
|
||||
|
|
@ -1730,7 +1737,14 @@ int mi_repair_by_sort(MI_CHECK *param, register MI_INFO *info,
|
|||
{
|
||||
sort_info->keyinfo=share->keyinfo+sort_info->key;
|
||||
if (!(((ulonglong) 1 << sort_info->key) & key_map))
|
||||
{
|
||||
/* Remember old statistics for key */
|
||||
memcpy((char*) rec_per_key_part,
|
||||
(char*) share->state.rec_per_key_part+
|
||||
(uint) (rec_per_key_part - param->rec_per_key_part),
|
||||
sort_info->keyinfo->keysegs*sizeof(*rec_per_key_part));
|
||||
continue;
|
||||
}
|
||||
|
||||
if ((!(param->testflag & T_SILENT)))
|
||||
printf ("- Fixing index %d\n",sort_info->key+1);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue