diff options
author | unknown <ingo@mysql.com> | 2005-10-26 14:01:54 +0200 |
---|---|---|
committer | unknown <ingo@mysql.com> | 2005-10-26 14:01:54 +0200 |
commit | 88a58fba88f3a3e94852082a18bbb1b29de04cda (patch) | |
tree | c12184e8c66ad1e14f66fa8b150e3fa3fe1a0e7a /sql/ha_myisam.cc | |
parent | 06f10b7f05de93024a725731bd085dab94e89a3e (diff) | |
download | mariadb-git-88a58fba88f3a3e94852082a18bbb1b29de04cda.tar.gz |
1.2048 05/10/20 10:31:16 ingo@mysql.com +1 -0
Bug#12166 - Unable to index very large tables
Moved clearing of errors behind the second repair attempt,
but will clear only if no error happened.
No test case. The error can be repeated with little free
space on tmpdir only. I do not know of a way to create this
in a portable way with our test suite.
I did however attach a shell script to the bug report which
can easily be adapted to the situation on the test machine.
myisam/mi_check.c:
Bug#12166 - Unable to index very large tables
Changed comments.
Removed unnecessary use of param->keys_in_use.
sql/ha_myisam.cc:
Bug#12166 - Unable to index very large tables
Moved clearing of errors behind the second repair attempt,
but will clear only if no error happened.
Diffstat (limited to 'sql/ha_myisam.cc')
-rw-r--r-- | sql/ha_myisam.cc | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/sql/ha_myisam.cc b/sql/ha_myisam.cc index 70137ff2b16..ced00c94e73 100644 --- a/sql/ha_myisam.cc +++ b/sql/ha_myisam.cc @@ -985,11 +985,16 @@ int ha_myisam::enable_indexes(uint mode) { sql_print_warning("Warning: Enabling keys got errno %d, retrying", my_errno); - thd->clear_error(); + /* Repairing by sort failed. Now try standard repair method. */ param.testflag&= ~(T_REP_BY_SORT | T_QUICK); error= (repair(thd,param,0) != HA_ADMIN_OK); - if (!error && thd->net.report_error) - error= HA_ERR_CRASHED; + /* + If the standard repair succeeded, clear all error messages which + might have been set by the first repair. They can still be seen + with SHOW WARNINGS then. + */ + if (! error) + thd->clear_error(); } info(HA_STATUS_CONST); thd->proc_info=save_proc_info; |