1 /* Copyright (C) 2008-2018 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., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1335 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_use_default_database(
111   THD *thd
112 );
113 int spider_param_internal_sql_log_off(
114   THD *thd
115 );
116 int spider_param_bulk_size(
117   THD *thd,
118   int bulk_size
119 );
120 int spider_param_bulk_update_mode(
121   THD *thd,
122   int bulk_update_mode
123 );
124 int spider_param_bulk_update_size(
125   THD *thd,
126   int bulk_update_size
127 );
128 int spider_param_internal_optimize(
129   THD *thd,
130   int internal_optimize
131 );
132 int spider_param_internal_optimize_local(
133   THD *thd,
134   int internal_optimize_local
135 );
136 bool spider_param_use_flash_logs(
137   THD *thd
138 );
139 int spider_param_use_snapshot_with_flush_tables(
140   THD *thd
141 );
142 bool spider_param_use_all_conns_snapshot(
143   THD *thd
144 );
145 bool spider_param_lock_exchange(
146   THD *thd
147 );
148 bool spider_param_internal_unlock(
149   THD *thd
150 );
151 bool spider_param_semi_trx(
152   THD *thd
153 );
154 int spider_param_connect_timeout(
155   THD *thd,
156   int connect_timeout
157 );
158 int spider_param_net_read_timeout(
159   THD *thd,
160   int net_read_timeout
161 );
162 int spider_param_net_write_timeout(
163   THD *thd,
164   int net_write_timeout
165 );
166 int spider_param_quick_mode(
167   THD *thd,
168   int quick_mode
169 );
170 longlong spider_param_quick_page_size(
171   THD *thd,
172   longlong quick_page_size
173 );
174 longlong spider_param_quick_page_byte(
175   THD *thd,
176   longlong quick_page_byte
177 );
178 int spider_param_low_mem_read(
179   THD *thd,
180   int low_mem_read
181 );
182 int spider_param_select_column_mode(
183   THD *thd,
184   int select_column_mode
185 );
186 #ifndef WITHOUT_SPIDER_BG_SEARCH
187 int spider_param_bgs_mode(
188   THD *thd,
189   int bgs_mode
190 );
191 longlong spider_param_bgs_first_read(
192   THD *thd,
193   longlong bgs_first_read
194 );
195 longlong spider_param_bgs_second_read(
196   THD *thd,
197   longlong bgs_second_read
198 );
199 #endif
200 longlong spider_param_first_read(
201   THD *thd,
202   longlong first_read
203 );
204 longlong spider_param_second_read(
205   THD *thd,
206   longlong second_read
207 );
208 double spider_param_crd_interval(
209   THD *thd,
210   double crd_interval
211 );
212 int spider_param_crd_mode(
213   THD *thd,
214   int crd_mode
215 );
216 #ifdef WITH_PARTITION_STORAGE_ENGINE
217 int spider_param_crd_sync(
218   THD *thd,
219   int crd_sync
220 );
221 #endif
222 int spider_param_crd_type(
223   THD *thd,
224   int crd_type
225 );
226 double spider_param_crd_weight(
227   THD *thd,
228   double crd_weight
229 );
230 #ifndef WITHOUT_SPIDER_BG_SEARCH
231 int spider_param_crd_bg_mode(
232   THD *thd,
233   int crd_bg_mode
234 );
235 #endif
236 double spider_param_sts_interval(
237   THD *thd,
238   double sts_interval
239 );
240 int spider_param_sts_mode(
241   THD *thd,
242   int sts_mode
243 );
244 #ifdef WITH_PARTITION_STORAGE_ENGINE
245 int spider_param_sts_sync(
246   THD *thd,
247   int sts_sync
248 );
249 #endif
250 #ifndef WITHOUT_SPIDER_BG_SEARCH
251 int spider_param_sts_bg_mode(
252   THD *thd,
253   int sts_bg_mode
254 );
255 #endif
256 double spider_param_ping_interval_at_trx_start(
257   THD *thd
258 );
259 #if defined(HS_HAS_SQLCOM) && defined(HAVE_HANDLERSOCKET)
260 double spider_param_hs_ping_interval(
261   THD *thd
262 );
263 #endif
264 int spider_param_auto_increment_mode(
265   THD *thd,
266   int auto_increment_mode
267 );
268 bool spider_param_same_server_link(
269   THD *thd
270 );
271 bool spider_param_local_lock_table(
272   THD *thd
273 );
274 int spider_param_use_pushdown_udf(
275   THD *thd,
276   int use_pushdown_udf
277 );
278 int spider_param_direct_dup_insert(
279   THD *thd,
280   int direct_dup_insert
281 );
282 uint spider_param_udf_table_lock_mutex_count();
283 uint spider_param_udf_table_mon_mutex_count();
284 longlong spider_param_udf_ds_bulk_insert_rows(
285   THD *thd,
286   longlong udf_ds_bulk_insert_rows
287 );
288 int spider_param_udf_ds_table_loop_mode(
289   THD *thd,
290   int udf_ds_table_loop_mode
291 );
292 char *spider_param_remote_access_charset();
293 int spider_param_remote_autocommit();
294 char *spider_param_remote_time_zone();
295 int spider_param_remote_sql_log_off();
296 int spider_param_remote_trx_isolation();
297 char *spider_param_remote_default_database();
298 longlong spider_param_connect_retry_interval(
299   THD *thd
300 );
301 int spider_param_connect_retry_count(
302   THD *thd
303 );
304 char *spider_param_bka_engine(
305   THD *thd,
306   char *bka_engine
307 );
308 int spider_param_bka_mode(
309   THD *thd,
310   int bka_mode
311 );
312 int spider_param_udf_ct_bulk_insert_interval(
313   int udf_ct_bulk_insert_interval
314 );
315 longlong spider_param_udf_ct_bulk_insert_rows(
316   longlong udf_ct_bulk_insert_rows
317 );
318 #if defined(HS_HAS_SQLCOM) && defined(HAVE_HANDLERSOCKET)
319 uint spider_param_hs_r_conn_recycle_mode(
320   THD *thd
321 );
322 uint spider_param_hs_r_conn_recycle_strict(
323   THD *thd
324 );
325 uint spider_param_hs_w_conn_recycle_mode(
326   THD *thd
327 );
328 uint spider_param_hs_w_conn_recycle_strict(
329   THD *thd
330 );
331 int spider_param_use_hs_read(
332   THD *thd,
333   int use_hs_read
334 );
335 int spider_param_use_hs_write(
336   THD *thd,
337   int use_hs_write
338 );
339 #endif
340 int spider_param_use_handler(
341   THD *thd,
342   int use_handler
343 );
344 int spider_param_error_read_mode(
345   THD *thd,
346   int error_read_mode
347 );
348 int spider_param_error_write_mode(
349   THD *thd,
350   int error_write_mode
351 );
352 int spider_param_skip_default_condition(
353   THD *thd,
354   int skip_default_condition
355 );
356 int spider_param_skip_parallel_search(
357   THD *thd,
358   int skip_parallel_search
359 );
360 longlong spider_param_direct_order_limit(
361   THD *thd,
362   longlong direct_order_limit
363 );
364 int spider_param_read_only_mode(
365   THD *thd,
366   int read_only_mode
367 );
368 #ifdef HA_CAN_BULK_ACCESS
369 int spider_param_bulk_access_free(
370   int bulk_access_free
371 );
372 #endif
373 #if MYSQL_VERSION_ID < 50500
374 #else
375 int spider_param_udf_ds_use_real_table(
376   THD *thd,
377   int udf_ds_use_real_table
378 );
379 #endif
380 my_bool spider_param_general_log();
381 my_bool spider_param_index_hint_pushdown(
382   THD *thd
383 );
384 uint spider_param_max_connections();
385 uint spider_param_conn_wait_timeout();
386 uint spider_param_log_result_errors();
387 uint spider_param_log_result_error_with_sql();
388 uint spider_param_internal_xa_id_type(
389   THD *thd
390 );
391 int spider_param_casual_read(
392   THD *thd,
393   int casual_read
394 );
395 my_bool spider_param_dry_access();
396 int spider_param_delete_all_rows_type(
397   THD *thd,
398   int delete_all_rows_type
399 );
400 int spider_param_bka_table_name_type(
401   THD *thd,
402   int bka_table_name_type
403 );
404 int spider_param_use_cond_other_than_pk_for_update(
405   THD *thd
406 );
407 int spider_param_store_last_sts(
408   int store_last_sts
409 );
410 int spider_param_store_last_crd(
411   int store_last_crd
412 );
413 int spider_param_load_sts_at_startup(
414   int load_sts_at_startup
415 );
416 int spider_param_load_crd_at_startup(
417   int load_crd_at_startup
418 );
419 #ifndef WITHOUT_SPIDER_BG_SEARCH
420 uint spider_param_table_sts_thread_count();
421 uint spider_param_table_crd_thread_count();
422 #endif
423 int spider_param_slave_trx_isolation();
424