diff options
author | Monty <monty@mariadb.org> | 2018-08-31 10:47:18 +0300 |
---|---|---|
committer | Monty <monty@mariadb.org> | 2018-08-31 14:26:07 +0300 |
commit | 6156089bc72904098c79fc12eba3c0537d5796d4 (patch) | |
tree | 4446372b7ce1a0a5febbc79e1da8f592b115e01f /storage/myisam | |
parent | ef88c7d306ab97799080d05ee39fc8beca7c3c50 (diff) | |
download | mariadb-git-6156089bc72904098c79fc12eba3c0537d5796d4.tar.gz |
Fixed several issues with aria_chk
- Made output to be aligned in aria_chk -d
- Aria engine error texts are now written instead of "Undefined error"
- When running with --check --force, tables with wrong TRN's but otherwise
correct are now zerofilled
- Fixed several bugs in check and recovery related to fulltext
- When doing recovery, store highest found TRID in aria_control_file
Before this, the
Diffstat (limited to 'storage/myisam')
-rw-r--r-- | storage/myisam/mi_check.c | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/storage/myisam/mi_check.c b/storage/myisam/mi_check.c index eab001c995a..5f9b5414174 100644 --- a/storage/myisam/mi_check.c +++ b/storage/myisam/mi_check.c @@ -111,7 +111,7 @@ int chk_status(HA_CHECK *param, register MI_INFO *info) if (share->state.open_count != (uint) (info->s->global_changed ? 1 : 0)) { /* Don't count this as a real warning, as check can correct this ! */ - uint save=param->warning_printed; + my_bool save=param->warning_printed; mi_check_print_warning(param, share->state.open_count==1 ? "%d client is using or hasn't closed the table properly" : @@ -526,7 +526,7 @@ int chk_key(HA_CHECK *param, register MI_INFO *info) (key_part_map)1, HA_READ_KEY_EXACT)) { /* Don't count this as a real warning, as myisamchk can't correct it */ - uint save=param->warning_printed; + my_bool save=param->warning_printed; mi_check_print_warning(param, "Found row where the auto_increment " "column has the value 0"); param->warning_printed=save; @@ -1515,7 +1515,8 @@ int mi_repair(HA_CHECK *param, register MI_INFO *info, new_file= -1; sort_param.sort_info=&sort_info; param->retry_repair= 0; - param->warning_printed= param->error_printed= param->note_printed= 0; + param->warning_printed= param->note_printed= 0; + param->error_printed= 0; if (!(param->testflag & T_SILENT)) { @@ -2210,7 +2211,8 @@ int mi_repair_by_sort(HA_CHECK *param, register MI_INFO *info, } param->testflag|=T_REP_BY_SORT; /* for easy checking */ param->retry_repair= 0; - param->warning_printed= param->error_printed= param->note_printed= 0; + param->warning_printed= param->note_printed= 0; + param->error_printed= 0; if (info->s->options & (HA_OPTION_CHECKSUM | HA_OPTION_COMPRESS_RECORD)) param->testflag|=T_CALC_CHECKSUM; |