diff options
author | unknown <patg@radha.local> | 2005-08-10 23:37:17 +0200 |
---|---|---|
committer | unknown <patg@radha.local> | 2005-08-10 23:37:17 +0200 |
commit | d1b8c44b5bf461e4ebaec2a0798c18e4ad3218ed (patch) | |
tree | f4a0eb53957c02d67857ed6569812d610b2bcaa3 /client | |
parent | 0872e83c4993fdb8eacdd82572896bf47555efed (diff) | |
download | mariadb-git-d1b8c44b5bf461e4ebaec2a0798c18e4ad3218ed.tar.gz |
BUG #12253. Fixed logic the prevented repair when "--fast" was included
in invoking mysqlcheck.
client/mysqlcheck.c:
BUG #12253. Removed logic that would skip adding the corrupt table name
if "--fast" was included along with "--auto-repair". Added some comments
as well.
Diffstat (limited to 'client')
-rw-r--r-- | client/mysqlcheck.c | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/client/mysqlcheck.c b/client/mysqlcheck.c index 07f3f25b50c..ee99d359000 100644 --- a/client/mysqlcheck.c +++ b/client/mysqlcheck.c @@ -575,8 +575,13 @@ static void print_result() if (status) { + /* + if there was an error with the table, we have --auto-repair set, + and this isn't a repair op, then add the table to the tables4repair + list + */ if (found_error && opt_auto_repair && what_to_do != DO_REPAIR && - (!opt_fast || strcmp(row[3],"OK"))) + strcmp(row[3],"OK")) insert_dynamic(&tables4repair, prev); found_error=0; if (opt_silent) @@ -595,8 +600,8 @@ static void print_result() strmov(prev, row[0]); putchar('\n'); } - if (found_error && opt_auto_repair && what_to_do != DO_REPAIR && - !opt_fast) + /* add the last table to be repaired to the list */ + if (found_error && opt_auto_repair && what_to_do != DO_REPAIR) insert_dynamic(&tables4repair, prev); mysql_free_result(res); } |