diff options
Diffstat (limited to 'storage/maria/ha_maria.h')
-rw-r--r-- | storage/maria/ha_maria.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/storage/maria/ha_maria.h b/storage/maria/ha_maria.h index 26b616e9682..b5d7b18c49a 100644 --- a/storage/maria/ha_maria.h +++ b/storage/maria/ha_maria.h @@ -36,7 +36,7 @@ C_MODE_END extern ulong maria_sort_buffer_size; extern TYPELIB maria_recover_typelib; -extern ulong maria_recover_options; +extern ulonglong maria_recover_options; class ha_maria :public handler { @@ -151,7 +151,8 @@ public: bool check_and_repair(THD * thd); bool is_crashed() const; bool is_changed() const; - bool auto_repair() const { return maria_recover_options != HA_RECOVER_NONE; } + bool auto_repair() const + { return test(maria_recover_options & HA_RECOVER_ANY); } 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); |