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