diff options
author | unknown <bar@mysql.com> | 2005-08-12 17:10:00 +0500 |
---|---|---|
committer | unknown <bar@mysql.com> | 2005-08-12 17:10:00 +0500 |
commit | 8685497a3f2467fb3929d633d5104782142c5362 (patch) | |
tree | 837691783e69d447d573b714d65381b20a31dd69 /client/mysqlcheck.c | |
parent | 36283ca2f09569fa1f1c7aabfcce4a188a17ad60 (diff) | |
parent | 058d5bff6e73eb4b9b36cb0bb82687557e3c317d (diff) | |
download | mariadb-git-8685497a3f2467fb3929d633d5104782142c5362.tar.gz |
Merge mysql.com:/usr/home/bar/mysql-4.1.b12351
into mysql.com:/usr/home/bar/mysql-5.0
client/mysqlcheck.c:
Auto merged
mysql-test/r/func_system.result:
Auto merged
sql/item_strfunc.cc:
Auto merged
Diffstat (limited to 'client/mysqlcheck.c')
-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 c767f1c89b7..465213cce50 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); } |