summaryrefslogtreecommitdiff
path: root/sql/ha_myisam.h
diff options
context:
space:
mode:
authormonty@tik.mysql.com <>2000-10-11 00:06:37 +0300
committermonty@tik.mysql.com <>2000-10-11 00:06:37 +0300
commit09dce662e273113029cc404af07d82b9c9c56fb6 (patch)
treecf18eb0d045153270d68aec8884a4732e953e883 /sql/ha_myisam.h
parent16f11f94b2fa7c7fca19fb5160b27c902c446a3c (diff)
downloadmariadb-git-09dce662e273113029cc404af07d82b9c9c56fb6.tar.gz
Automatic repair of MyISAM tables + portability fixes
Diffstat (limited to 'sql/ha_myisam.h')
-rw-r--r--sql/ha_myisam.h7
1 files changed, 4 insertions, 3 deletions
diff --git a/sql/ha_myisam.h b/sql/ha_myisam.h
index d33fc52c937..ff959ead883 100644
--- a/sql/ha_myisam.h
+++ b/sql/ha_myisam.h
@@ -45,8 +45,7 @@ class ha_myisam: public handler
HA_KEYPOS_TO_RNDPOS | HA_READ_ORDER | HA_LASTKEY_ORDER |
HA_HAVE_KEY_READ_ONLY | HA_READ_NOT_EXACT_KEY |
HA_LONGLONG_KEYS | HA_NULL_KEY |
- HA_DUPP_POS | HA_BLOB_KEY | HA_AUTO_PART_KEY |
- HA_CHECK_AND_REPAIR)
+ HA_DUPP_POS | HA_BLOB_KEY | HA_AUTO_PART_KEY)
{}
~ha_myisam() {}
const char *table_type() const { return "MyISAM"; }
@@ -103,7 +102,9 @@ class ha_myisam: public handler
int check(THD* thd, HA_CHECK_OPT* check_opt);
int analyze(THD* thd,HA_CHECK_OPT* check_opt);
int repair(THD* thd, HA_CHECK_OPT* check_opt);
- bool check_and_repair(THD *thd, const char *name);
+ bool check_and_repair(THD *thd);
+ bool is_crashed() const;
+ bool auto_repair() const { return myisam_recover_options != 0; }
int optimize(THD* thd, HA_CHECK_OPT* check_opt);
int restore(THD* thd, HA_CHECK_OPT* check_opt);
int backup(THD* thd, HA_CHECK_OPT* check_opt);