|
1 | 1 | #ifndef HA_MARIA_INCLUDED |
2 | 2 | #define HA_MARIA_INCLUDED |
3 | | -/* Copyright (C) 2006,2004 MySQL AB & MySQL Finland AB & TCX DataKonsult AB |
| 3 | +/* Copyright (C) 2006, 2004 MySQL AB & MySQL Finland AB & TCX DataKonsult AB |
| 4 | + Copyright (c) 2009, 2020, MariaDB Corporation Ab |
4 | 5 |
|
5 | 6 | This program is free software; you can redistribute it and/or modify |
6 | 7 | it under the terms of the GNU General Public License as published by |
@@ -38,7 +39,7 @@ C_MODE_END |
38 | 39 | extern TYPELIB maria_recover_typelib; |
39 | 40 | extern ulonglong maria_recover_options; |
40 | 41 |
|
41 | | -class ha_maria :public handler |
| 42 | +class __attribute__((visibility("default"))) ha_maria :public handler |
42 | 43 | { |
43 | 44 | public: |
44 | 45 | MARIA_HA *file; |
@@ -97,12 +98,7 @@ class ha_maria :public handler |
97 | 98 | ft_handler->please->reinit_search(ft_handler); |
98 | 99 | return 0; |
99 | 100 | } |
100 | | - FT_INFO *ft_init_ext(uint flags, uint inx, String * key) |
101 | | - { |
102 | | - return maria_ft_init_search(flags, file, inx, |
103 | | - (uchar *) key->ptr(), key->length(), |
104 | | - key->charset(), table->record[0]); |
105 | | - } |
| 101 | + FT_INFO *ft_init_ext(uint flags, uint inx, String * key); |
106 | 102 | int ft_read(uchar * buf); |
107 | 103 | int index_init(uint idx, bool sorted); |
108 | 104 | int index_end(); |
@@ -146,14 +142,7 @@ class ha_maria :public handler |
146 | 142 | bool check_and_repair(THD * thd); |
147 | 143 | bool is_crashed() const; |
148 | 144 | bool is_changed() const; |
149 | | - bool auto_repair(int error) const |
150 | | - { |
151 | | - /* Always auto-repair moved tables (error == HA_ERR_OLD_FILE) */ |
152 | | - return ((MY_TEST(maria_recover_options & HA_RECOVER_ANY) && |
153 | | - error == HA_ERR_CRASHED_ON_USAGE) || |
154 | | - error == HA_ERR_OLD_FILE); |
155 | | - |
156 | | - } |
| 145 | + bool auto_repair(int error) const; |
157 | 146 | int optimize(THD * thd, HA_CHECK_OPT * check_opt); |
158 | 147 | int assign_to_keycache(THD * thd, HA_CHECK_OPT * check_opt); |
159 | 148 | int preload_keys(THD * thd, HA_CHECK_OPT * check_opt); |
|
0 commit comments