1 | /* Copyright (C) 2008-2017 Kentoku Shiba |
2 | |
3 | This program is free software); you can redistribute it and/or modify |
4 | it under the terms of the GNU General Public License as published by |
5 | the Free Software Foundation); version 2 of the License. |
6 | |
7 | This program is distributed in the hope that it will be useful, |
8 | but WITHOUT ANY WARRANTY); without even the implied warranty of |
9 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
10 | GNU General Public License for more details. |
11 | |
12 | You should have received a copy of the GNU General Public License |
13 | along with this program); if not, write to the Free Software |
14 | Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */ |
15 | |
16 | my_bool spider_param_support_xa(); |
17 | my_bool spider_param_connect_mutex(); |
18 | uint spider_param_connect_error_interval(); |
19 | uint spider_param_table_init_error_interval(); |
20 | int spider_param_use_table_charset( |
21 | int use_table_charset |
22 | ); |
23 | uint spider_param_conn_recycle_mode( |
24 | THD *thd |
25 | ); |
26 | uint spider_param_conn_recycle_strict( |
27 | THD *thd |
28 | ); |
29 | bool spider_param_sync_trx_isolation( |
30 | THD *thd |
31 | ); |
32 | bool spider_param_use_consistent_snapshot( |
33 | THD *thd |
34 | ); |
35 | bool spider_param_internal_xa( |
36 | THD *thd |
37 | ); |
38 | uint spider_param_internal_xa_snapshot( |
39 | THD *thd |
40 | ); |
41 | uint spider_param_force_commit( |
42 | THD *thd |
43 | ); |
44 | uint spider_param_xa_register_mode( |
45 | THD *thd |
46 | ); |
47 | longlong spider_param_internal_offset( |
48 | THD *thd, |
49 | longlong internal_offset |
50 | ); |
51 | longlong spider_param_internal_limit( |
52 | THD *thd, |
53 | longlong internal_limit |
54 | ); |
55 | longlong spider_param_split_read( |
56 | THD *thd, |
57 | longlong split_read |
58 | ); |
59 | double spider_param_semi_split_read( |
60 | THD *thd, |
61 | double semi_split_read |
62 | ); |
63 | longlong spider_param_semi_split_read_limit( |
64 | THD *thd, |
65 | longlong semi_split_read_limit |
66 | ); |
67 | int spider_param_init_sql_alloc_size( |
68 | THD *thd, |
69 | int init_sql_alloc_size |
70 | ); |
71 | int spider_param_reset_sql_alloc( |
72 | THD *thd, |
73 | int reset_sql_alloc |
74 | ); |
75 | #if defined(HS_HAS_SQLCOM) && defined(HAVE_HANDLERSOCKET) |
76 | longlong spider_param_hs_result_free_size( |
77 | THD *thd, |
78 | longlong hs_result_free_size |
79 | ); |
80 | #endif |
81 | int spider_param_multi_split_read( |
82 | THD *thd, |
83 | int multi_split_read |
84 | ); |
85 | int spider_param_max_order( |
86 | THD *thd, |
87 | int max_order |
88 | ); |
89 | int spider_param_semi_trx_isolation( |
90 | THD *thd |
91 | ); |
92 | int spider_param_semi_table_lock( |
93 | THD *thd, |
94 | int semi_table_lock |
95 | ); |
96 | int spider_param_semi_table_lock_connection( |
97 | THD *thd, |
98 | int semi_table_lock_connection |
99 | ); |
100 | uint spider_param_block_size( |
101 | THD *thd |
102 | ); |
103 | int spider_param_selupd_lock_mode( |
104 | THD *thd, |
105 | int selupd_lock_mode |
106 | ); |
107 | bool spider_param_sync_autocommit( |
108 | THD *thd |
109 | ); |
110 | bool spider_param_sync_time_zone( |
111 | THD *thd |
112 | ); |
113 | bool spider_param_use_default_database( |
114 | THD *thd |
115 | ); |
116 | int spider_param_internal_sql_log_off( |
117 | THD *thd |
118 | ); |
119 | int spider_param_bulk_size( |
120 | THD *thd, |
121 | int bulk_size |
122 | ); |
123 | int spider_param_bulk_update_mode( |
124 | THD *thd, |
125 | int bulk_update_mode |
126 | ); |
127 | int spider_param_bulk_update_size( |
128 | THD *thd, |
129 | int bulk_update_size |
130 | ); |
131 | int spider_param_internal_optimize( |
132 | THD *thd, |
133 | int internal_optimize |
134 | ); |
135 | int spider_param_internal_optimize_local( |
136 | THD *thd, |
137 | int internal_optimize_local |
138 | ); |
139 | bool spider_param_use_flash_logs( |
140 | THD *thd |
141 | ); |
142 | int spider_param_use_snapshot_with_flush_tables( |
143 | THD *thd |
144 | ); |
145 | bool spider_param_use_all_conns_snapshot( |
146 | THD *thd |
147 | ); |
148 | bool spider_param_lock_exchange( |
149 | THD *thd |
150 | ); |
151 | bool spider_param_internal_unlock( |
152 | THD *thd |
153 | ); |
154 | bool spider_param_semi_trx( |
155 | THD *thd |
156 | ); |
157 | int spider_param_connect_timeout( |
158 | THD *thd, |
159 | int connect_timeout |
160 | ); |
161 | int spider_param_net_read_timeout( |
162 | THD *thd, |
163 | int net_read_timeout |
164 | ); |
165 | int spider_param_net_write_timeout( |
166 | THD *thd, |
167 | int net_write_timeout |
168 | ); |
169 | int spider_param_quick_mode( |
170 | THD *thd, |
171 | int quick_mode |
172 | ); |
173 | longlong spider_param_quick_page_size( |
174 | THD *thd, |
175 | longlong quick_page_size |
176 | ); |
177 | int spider_param_low_mem_read( |
178 | THD *thd, |
179 | int low_mem_read |
180 | ); |
181 | int spider_param_select_column_mode( |
182 | THD *thd, |
183 | int select_column_mode |
184 | ); |
185 | #ifndef WITHOUT_SPIDER_BG_SEARCH |
186 | int spider_param_bgs_mode( |
187 | THD *thd, |
188 | int bgs_mode |
189 | ); |
190 | longlong spider_param_bgs_first_read( |
191 | THD *thd, |
192 | longlong bgs_first_read |
193 | ); |
194 | longlong spider_param_bgs_second_read( |
195 | THD *thd, |
196 | longlong bgs_second_read |
197 | ); |
198 | #endif |
199 | longlong spider_param_first_read( |
200 | THD *thd, |
201 | longlong first_read |
202 | ); |
203 | longlong spider_param_second_read( |
204 | THD *thd, |
205 | longlong second_read |
206 | ); |
207 | double spider_param_crd_interval( |
208 | THD *thd, |
209 | double crd_interval |
210 | ); |
211 | int spider_param_crd_mode( |
212 | THD *thd, |
213 | int crd_mode |
214 | ); |
215 | #ifdef WITH_PARTITION_STORAGE_ENGINE |
216 | int spider_param_crd_sync( |
217 | THD *thd, |
218 | int crd_sync |
219 | ); |
220 | #endif |
221 | int spider_param_crd_type( |
222 | THD *thd, |
223 | int crd_type |
224 | ); |
225 | double spider_param_crd_weight( |
226 | THD *thd, |
227 | double crd_weight |
228 | ); |
229 | #ifndef WITHOUT_SPIDER_BG_SEARCH |
230 | int spider_param_crd_bg_mode( |
231 | THD *thd, |
232 | int crd_bg_mode |
233 | ); |
234 | #endif |
235 | double spider_param_sts_interval( |
236 | THD *thd, |
237 | double sts_interval |
238 | ); |
239 | int spider_param_sts_mode( |
240 | THD *thd, |
241 | int sts_mode |
242 | ); |
243 | #ifdef WITH_PARTITION_STORAGE_ENGINE |
244 | int spider_param_sts_sync( |
245 | THD *thd, |
246 | int sts_sync |
247 | ); |
248 | #endif |
249 | #ifndef WITHOUT_SPIDER_BG_SEARCH |
250 | int spider_param_sts_bg_mode( |
251 | THD *thd, |
252 | int sts_bg_mode |
253 | ); |
254 | #endif |
255 | double spider_param_ping_interval_at_trx_start( |
256 | THD *thd |
257 | ); |
258 | #if defined(HS_HAS_SQLCOM) && defined(HAVE_HANDLERSOCKET) |
259 | double spider_param_hs_ping_interval( |
260 | THD *thd |
261 | ); |
262 | #endif |
263 | int spider_param_auto_increment_mode( |
264 | THD *thd, |
265 | int auto_increment_mode |
266 | ); |
267 | bool spider_param_same_server_link( |
268 | THD *thd |
269 | ); |
270 | bool spider_param_local_lock_table( |
271 | THD *thd |
272 | ); |
273 | int spider_param_use_pushdown_udf( |
274 | THD *thd, |
275 | int use_pushdown_udf |
276 | ); |
277 | int spider_param_direct_dup_insert( |
278 | THD *thd, |
279 | int direct_dup_insert |
280 | ); |
281 | uint spider_param_udf_table_lock_mutex_count(); |
282 | uint spider_param_udf_table_mon_mutex_count(); |
283 | longlong spider_param_udf_ds_bulk_insert_rows( |
284 | THD *thd, |
285 | longlong udf_ds_bulk_insert_rows |
286 | ); |
287 | int spider_param_udf_ds_table_loop_mode( |
288 | THD *thd, |
289 | int udf_ds_table_loop_mode |
290 | ); |
291 | char *spider_param_remote_access_charset(); |
292 | int spider_param_remote_autocommit(); |
293 | char *spider_param_remote_time_zone(); |
294 | int spider_param_remote_sql_log_off(); |
295 | int spider_param_remote_trx_isolation(); |
296 | char *spider_param_remote_default_database(); |
297 | longlong spider_param_connect_retry_interval( |
298 | THD *thd |
299 | ); |
300 | int spider_param_connect_retry_count( |
301 | THD *thd |
302 | ); |
303 | char *spider_param_bka_engine( |
304 | THD *thd, |
305 | char *bka_engine |
306 | ); |
307 | int spider_param_bka_mode( |
308 | THD *thd, |
309 | int bka_mode |
310 | ); |
311 | int spider_param_udf_ct_bulk_insert_interval( |
312 | int udf_ct_bulk_insert_interval |
313 | ); |
314 | longlong spider_param_udf_ct_bulk_insert_rows( |
315 | longlong udf_ct_bulk_insert_rows |
316 | ); |
317 | #if defined(HS_HAS_SQLCOM) && defined(HAVE_HANDLERSOCKET) |
318 | uint spider_param_hs_r_conn_recycle_mode( |
319 | THD *thd |
320 | ); |
321 | uint spider_param_hs_r_conn_recycle_strict( |
322 | THD *thd |
323 | ); |
324 | uint spider_param_hs_w_conn_recycle_mode( |
325 | THD *thd |
326 | ); |
327 | uint spider_param_hs_w_conn_recycle_strict( |
328 | THD *thd |
329 | ); |
330 | int spider_param_use_hs_read( |
331 | THD *thd, |
332 | int use_hs_read |
333 | ); |
334 | int spider_param_use_hs_write( |
335 | THD *thd, |
336 | int use_hs_write |
337 | ); |
338 | #endif |
339 | int spider_param_use_handler( |
340 | THD *thd, |
341 | int use_handler |
342 | ); |
343 | int spider_param_error_read_mode( |
344 | THD *thd, |
345 | int error_read_mode |
346 | ); |
347 | int spider_param_error_write_mode( |
348 | THD *thd, |
349 | int error_write_mode |
350 | ); |
351 | int spider_param_skip_default_condition( |
352 | THD *thd, |
353 | int skip_default_condition |
354 | ); |
355 | int spider_param_skip_parallel_search( |
356 | THD *thd, |
357 | int skip_parallel_search |
358 | ); |
359 | longlong spider_param_direct_order_limit( |
360 | THD *thd, |
361 | longlong direct_order_limit |
362 | ); |
363 | int spider_param_read_only_mode( |
364 | THD *thd, |
365 | int read_only_mode |
366 | ); |
367 | #ifdef HA_CAN_BULK_ACCESS |
368 | int spider_param_bulk_access_free( |
369 | int bulk_access_free |
370 | ); |
371 | #endif |
372 | #if MYSQL_VERSION_ID < 50500 |
373 | #else |
374 | int spider_param_udf_ds_use_real_table( |
375 | THD *thd, |
376 | int udf_ds_use_real_table |
377 | ); |
378 | #endif |
379 | my_bool spider_param_general_log(); |
380 | my_bool spider_param_index_hint_pushdown( |
381 | THD *thd |
382 | ); |
383 | uint spider_param_max_connections(); |
384 | uint spider_param_conn_wait_timeout(); |
385 | uint spider_param_log_result_errors(); |
386 | uint spider_param_log_result_error_with_sql(); |
387 | uint spider_param_internal_xa_id_type( |
388 | THD *thd |
389 | ); |
390 | int spider_param_casual_read( |
391 | THD *thd, |
392 | int casual_read |
393 | ); |
394 | my_bool spider_param_dry_access(); |
395 | int spider_param_delete_all_rows_type( |
396 | THD *thd, |
397 | int delete_all_rows_type |
398 | ); |
399 | int spider_param_bka_table_name_type( |
400 | THD *thd, |
401 | int bka_table_name_type |
402 | ); |
403 | int spider_param_store_last_sts( |
404 | int store_last_sts |
405 | ); |
406 | int spider_param_store_last_crd( |
407 | int store_last_crd |
408 | ); |
409 | int spider_param_load_sts_at_startup( |
410 | int load_sts_at_startup |
411 | ); |
412 | int spider_param_load_crd_at_startup( |
413 | int load_crd_at_startup |
414 | ); |
415 | #ifndef WITHOUT_SPIDER_BG_SEARCH |
416 | uint spider_param_table_sts_thread_count(); |
417 | uint spider_param_table_crd_thread_count(); |
418 | #endif |
419 | |