Replace strcasecmp with strcmp for MySQL variables

pull/1993/head
René Cannaò 7 years ago
parent 60e343955c
commit 6938b04e71

@ -634,164 +634,164 @@ uint8_t MySQL_Threads_Handler::get_variable_uint8(char *name) {
int MySQL_Threads_Handler::get_variable_int(const char *name) {
//VALGRIND_DISABLE_ERROR_REPORTING;
#ifdef DEBUG
if (!strcasecmp(name,"session_debug")) return (int)variables.session_debug;
if (!strcmp(name,"session_debug")) return (int)variables.session_debug;
#endif /* DEBUG */
if (!strncasecmp(name,"monitor_",8)) {
if (!strncmp(name,"monitor_",8)) {
char a = name[8];
if (a == 'r' || a == 'R') {
if (!strcasecmp(name,"monitor_read_only_interval")) return (int)variables.monitor_read_only_interval;
if (!strcasecmp(name,"monitor_read_only_timeout")) return (int)variables.monitor_read_only_timeout;
if (!strcasecmp(name,"monitor_read_only_max_timeout_count")) return (int)variables.monitor_read_only_max_timeout_count;
if (!strcasecmp(name,"monitor_replication_lag_interval")) return (int)variables.monitor_replication_lag_interval;
if (!strcasecmp(name,"monitor_replication_lag_timeout")) return (int)variables.monitor_replication_lag_timeout;
if (!strcmp(name,"monitor_read_only_interval")) return (int)variables.monitor_read_only_interval;
if (!strcmp(name,"monitor_read_only_timeout")) return (int)variables.monitor_read_only_timeout;
if (!strcmp(name,"monitor_read_only_max_timeout_count")) return (int)variables.monitor_read_only_max_timeout_count;
if (!strcmp(name,"monitor_replication_lag_interval")) return (int)variables.monitor_replication_lag_interval;
if (!strcmp(name,"monitor_replication_lag_timeout")) return (int)variables.monitor_replication_lag_timeout;
}
if (a == 'g' || a == 'G') {
if (!strcasecmp(name,"monitor_groupreplication_healthcheck_interval")) return (int)variables.monitor_groupreplication_healthcheck_interval;
if (!strcasecmp(name,"monitor_groupreplication_healthcheck_timeout")) return (int)variables.monitor_groupreplication_healthcheck_timeout;
if (!strcasecmp(name,"monitor_galera_healthcheck_interval")) return (int)variables.monitor_galera_healthcheck_interval;
if (!strcasecmp(name,"monitor_galera_healthcheck_timeout")) return (int)variables.monitor_galera_healthcheck_timeout;
if (!strcmp(name,"monitor_groupreplication_healthcheck_interval")) return (int)variables.monitor_groupreplication_healthcheck_interval;
if (!strcmp(name,"monitor_groupreplication_healthcheck_timeout")) return (int)variables.monitor_groupreplication_healthcheck_timeout;
if (!strcmp(name,"monitor_galera_healthcheck_interval")) return (int)variables.monitor_galera_healthcheck_interval;
if (!strcmp(name,"monitor_galera_healthcheck_timeout")) return (int)variables.monitor_galera_healthcheck_timeout;
}
if (a == 'p' || a == 'P') {
if (!strcasecmp(name,"monitor_ping_interval")) return (int)variables.monitor_ping_interval;
if (!strcasecmp(name,"monitor_ping_max_failures")) return (int)variables.monitor_ping_max_failures;
if (!strcasecmp(name,"monitor_ping_timeout")) return (int)variables.monitor_ping_timeout;
if (!strcmp(name,"monitor_ping_interval")) return (int)variables.monitor_ping_interval;
if (!strcmp(name,"monitor_ping_max_failures")) return (int)variables.monitor_ping_max_failures;
if (!strcmp(name,"monitor_ping_timeout")) return (int)variables.monitor_ping_timeout;
}
if (a == 't' || a == 'T') {
if (!strcasecmp(name,"monitor_threads_min")) return (int)variables.monitor_threads_min;
if (!strcasecmp(name,"monitor_threads_max")) return (int)variables.monitor_threads_max;
if (!strcasecmp(name,"monitor_threads_queue_maxsize")) return (int)variables.monitor_threads_queue_maxsize;
if (!strcmp(name,"monitor_threads_min")) return (int)variables.monitor_threads_min;
if (!strcmp(name,"monitor_threads_max")) return (int)variables.monitor_threads_max;
if (!strcmp(name,"monitor_threads_queue_maxsize")) return (int)variables.monitor_threads_queue_maxsize;
}
if (a == 'c' || a == 'C') {
if (!strcasecmp(name,"monitor_connect_interval")) return (int)variables.monitor_connect_interval;
if (!strcasecmp(name,"monitor_connect_timeout")) return (int)variables.monitor_connect_timeout;
if (!strcmp(name,"monitor_connect_interval")) return (int)variables.monitor_connect_interval;
if (!strcmp(name,"monitor_connect_timeout")) return (int)variables.monitor_connect_timeout;
}
if (a == 'q' || a == 'Q') {
if (!strcasecmp(name,"monitor_query_interval")) return (int)variables.monitor_query_interval;
if (!strcasecmp(name,"monitor_query_timeout")) return (int)variables.monitor_query_timeout;
if (!strcmp(name,"monitor_query_interval")) return (int)variables.monitor_query_interval;
if (!strcmp(name,"monitor_query_timeout")) return (int)variables.monitor_query_timeout;
}
if (a == 'w' || a == 'W') {
if (!strcasecmp(name,"monitor_wait_timeout")) return (int)variables.monitor_wait_timeout;
if (!strcasecmp(name,"monitor_writer_is_also_reader")) return (int)variables.monitor_writer_is_also_reader;
}
if (!strcasecmp(name,"monitor_enabled")) return (int)variables.monitor_enabled;
if (!strcasecmp(name,"monitor_history")) return (int)variables.monitor_history;
if (!strcasecmp(name,"monitor_slave_lag_when_null")) return (int)variables.monitor_slave_lag_when_null;
}
if (!strncasecmp(name,"c",1)) {
if (!strcasecmp(name,"connect_retries_on_failure")) return (int)variables.connect_retries_on_failure;
if (!strcasecmp(name,"connection_delay_multiplex_ms")) return (int)variables.connection_delay_multiplex_ms;
if (!strcasecmp(name,"connection_max_age_ms")) return (int)variables.connection_max_age_ms;
if (!strcasecmp(name,"connect_timeout_server")) return (int)variables.connect_timeout_server;
if (!strcasecmp(name,"connect_timeout_server_max")) return (int)variables.connect_timeout_server_max;
if (!strcasecmp(name,"connect_retries_delay")) return (int)variables.connect_retries_delay;
if (!strcasecmp(name,"client_found_rows")) return (int)variables.client_found_rows;
if (!strcasecmp(name,"commands_stats")) return (int)variables.commands_stats;
if (!strcasecmp(name,"connpoll_reset_queue_length")) return (int)variables.connpoll_reset_queue_length;
}
if (!strncasecmp(name,"s",1)) {
if (!strcasecmp(name,"shun_on_failures")) return (int)variables.shun_on_failures;
if (!strcasecmp(name,"shun_recovery_time_sec")) return (int)variables.shun_recovery_time_sec;
if (!strcmp(name,"monitor_wait_timeout")) return (int)variables.monitor_wait_timeout;
if (!strcmp(name,"monitor_writer_is_also_reader")) return (int)variables.monitor_writer_is_also_reader;
}
if (!strcmp(name,"monitor_enabled")) return (int)variables.monitor_enabled;
if (!strcmp(name,"monitor_history")) return (int)variables.monitor_history;
if (!strcmp(name,"monitor_slave_lag_when_null")) return (int)variables.monitor_slave_lag_when_null;
}
if (!strncmp(name,"c",1)) {
if (!strcmp(name,"connect_retries_on_failure")) return (int)variables.connect_retries_on_failure;
if (!strcmp(name,"connection_delay_multiplex_ms")) return (int)variables.connection_delay_multiplex_ms;
if (!strcmp(name,"connection_max_age_ms")) return (int)variables.connection_max_age_ms;
if (!strcmp(name,"connect_timeout_server")) return (int)variables.connect_timeout_server;
if (!strcmp(name,"connect_timeout_server_max")) return (int)variables.connect_timeout_server_max;
if (!strcmp(name,"connect_retries_delay")) return (int)variables.connect_retries_delay;
if (!strcmp(name,"client_found_rows")) return (int)variables.client_found_rows;
if (!strcmp(name,"commands_stats")) return (int)variables.commands_stats;
if (!strcmp(name,"connpoll_reset_queue_length")) return (int)variables.connpoll_reset_queue_length;
}
if (!strncmp(name,"s",1)) {
if (!strcmp(name,"shun_on_failures")) return (int)variables.shun_on_failures;
if (!strcmp(name,"shun_recovery_time_sec")) return (int)variables.shun_recovery_time_sec;
#ifdef IDLE_THREADS
if (!strcasecmp(name,"session_idle_ms")) return (int)variables.session_idle_ms;
if (!strcmp(name,"session_idle_ms")) return (int)variables.session_idle_ms;
#endif // IDLE_THREADS
if (!strcasecmp(name,"stats_time_backend_query")) return (int)variables.stats_time_backend_query;
if (!strcasecmp(name,"stats_time_query_processor")) return (int)variables.stats_time_query_processor;
if (!strcasecmp(name,"sessions_sort")) return (int)variables.sessions_sort;
if (!strcmp(name,"stats_time_backend_query")) return (int)variables.stats_time_backend_query;
if (!strcmp(name,"stats_time_query_processor")) return (int)variables.stats_time_query_processor;
if (!strcmp(name,"sessions_sort")) return (int)variables.sessions_sort;
#ifdef IDLE_THREADS
if (!strcasecmp(name,"session_idle_show_processlist")) return (int)variables.session_idle_show_processlist;
if (!strcmp(name,"session_idle_show_processlist")) return (int)variables.session_idle_show_processlist;
#endif // IDLE_THREADS
if (!strcasecmp(name,"servers_stats")) return (int)variables.servers_stats;
if (!strcasecmp(name,"stacksize")) return ( stacksize ? stacksize : DEFAULT_STACK_SIZE);
}
if (!strncasecmp(name,"m",1)) {
if (!strcasecmp(name,"max_allowed_packet")) return (int)variables.max_allowed_packet;
if (!strcasecmp(name,"max_transaction_time")) return (int)variables.max_transaction_time;
if (!strcasecmp(name,"max_connections")) return (int)variables.max_connections;
if (!strcasecmp(name,"max_stmts_per_connection")) return (int)variables.max_stmts_per_connection;
if (!strcasecmp(name,"max_stmts_cache")) return (int)variables.max_stmts_cache;
if (!strcasecmp(name,"mirror_max_concurrency")) return (int)variables.mirror_max_concurrency;
if (!strcasecmp(name,"mirror_max_queue_length")) return (int)variables.mirror_max_queue_length;
}
if (!strncasecmp(name,"q",1)) {
if (!strcasecmp(name,"query_retries_on_failure")) return (int)variables.query_retries_on_failure;
if (!strcasecmp(name,"query_digests_max_digest_length")) return (int)variables.query_digests_max_digest_length;
if (!strcasecmp(name,"query_digests_max_query_length")) return (int)variables.query_digests_max_query_length;
if (!strcasecmp(name,"query_processor_iterations")) return (int)variables.query_processor_iterations;
if (!strcasecmp(name,"query_processor_regex")) return (int)variables.query_processor_regex;
if (!strcasecmp(name,"query_cache_size_MB")) return (int)variables.query_cache_size_MB;
if (!strcasecmp(name,"query_digests")) return (int)variables.query_digests;
if (!strcasecmp(name,"query_digests_lowercase")) return (int)variables.query_digests_lowercase;
if (!strcasecmp(name,"query_digests_normalize_digest_text")) return (int)variables.query_digests_normalize_digest_text;
if (!strcasecmp(name,"query_digests_track_hostname")) return (int)variables.query_digests_track_hostname;
}
if (!strncasecmp(name,"p",1)) {
if (!strcasecmp(name,"ping_interval_server_msec")) return (int)variables.ping_interval_server_msec;
if (!strcasecmp(name,"ping_timeout_server")) return (int)variables.ping_timeout_server;
if (!strcasecmp(name,"poll_timeout")) return variables.poll_timeout;
if (!strcasecmp(name,"poll_timeout_on_failure")) return variables.poll_timeout_on_failure;
}
if (!strncasecmp(name,"t",1)) {
if (!strcasecmp(name,"throttle_connections_per_sec_to_hostgroup")) return (int)variables.throttle_connections_per_sec_to_hostgroup;
if (!strcasecmp(name,"threshold_query_length")) return (int)variables.threshold_query_length;
if (!strcasecmp(name,"threshold_resultset_size")) return (int)variables.threshold_resultset_size;
if (!strcasecmp(name,"throttle_max_bytes_per_second_to_client")) return (int)variables.throttle_max_bytes_per_second_to_client;
if (!strcasecmp(name,"throttle_ratio_server_to_client")) return (int)variables.throttle_ratio_server_to_client;
}
if (!strncasecmp(name,"d",1)) {
if (!strcasecmp(name,"default_reconnect")) return (int)variables.default_reconnect;
if (!strcasecmp(name,"default_query_delay")) return (int)variables.default_query_delay;
if (!strcasecmp(name,"default_query_timeout")) return (int)variables.default_query_timeout;
if (!strcasecmp(name,"default_max_latency_ms")) return (int)variables.default_max_latency_ms;
}
if (!strcasecmp(name,"eventslog_filesize")) return (int)variables.eventslog_filesize;
if (!strcasecmp(name,"hostgroup_manager_verbose")) return (int)variables.hostgroup_manager_verbose;
if (!strcasecmp(name,"binlog_reader_connect_retry_msec")) return (int)variables.binlog_reader_connect_retry_msec;
if (!strcasecmp(name,"wait_timeout")) return (int)variables.wait_timeout;
if (!strcasecmp(name,"reset_connection_algorithm")) return (int)variables.reset_connection_algorithm;
if (!strcasecmp(name,"throttle_max_bytes_per_second_to_client")) return (int)variables.throttle_max_bytes_per_second_to_client;
if (!strcasecmp(name,"throttle_ratio_server_to_client")) return (int)variables.throttle_ratio_server_to_client;
if (!strcasecmp(name,"max_connections")) return (int)variables.max_connections;
if (!strcasecmp(name,"max_stmts_per_connection")) return (int)variables.max_stmts_per_connection;
if (!strcasecmp(name,"max_stmts_cache")) return (int)variables.max_stmts_cache;
if (!strcasecmp(name,"mirror_max_concurrency")) return (int)variables.mirror_max_concurrency;
if (!strcasecmp(name,"mirror_max_queue_length")) return (int)variables.mirror_max_queue_length;
if (!strcasecmp(name,"default_query_delay")) return (int)variables.default_query_delay;
if (!strcasecmp(name,"default_query_timeout")) return (int)variables.default_query_timeout;
if (!strcasecmp(name,"query_processor_iterations")) return (int)variables.query_processor_iterations;
if (!strcasecmp(name,"query_processor_regex")) return (int)variables.query_processor_regex;
if (!strcasecmp(name,"auto_increment_delay_multiplex")) return (int)variables.auto_increment_delay_multiplex;
if (!strcasecmp(name,"default_max_latency_ms")) return (int)variables.default_max_latency_ms;
if (!strcasecmp(name,"long_query_time")) return (int)variables.long_query_time;
if (!strcasecmp(name,"free_connections_pct")) return (int)variables.free_connections_pct;
if (!strcasecmp(name,"have_compress")) return (int)variables.have_compress;
if (!strcasecmp(name,"have_ssl")) return (int)variables.have_ssl;
if (!strcasecmp(name,"hostgroup_manager_verbose")) return (int)variables.hostgroup_manager_verbose;
if (!strcasecmp(name,"multiplexing")) return (int)variables.multiplexing;
if (!strcasecmp(name,"forward_autocommit")) return (int)variables.forward_autocommit;
if (!strcasecmp(name,"enforce_autocommit_on_reads")) return (int)variables.enforce_autocommit_on_reads;
if (!strcasecmp(name,"autocommit_false_not_reusable")) return (int)variables.autocommit_false_not_reusable;
if (!strcasecmp(name,"autocommit_false_is_transaction")) return (int)variables.autocommit_false_is_transaction;
if (!strcasecmp(name,"verbose_query_error")) return (int)variables.verbose_query_error;
if (!strcasecmp(name,"commands_stats")) return (int)variables.commands_stats;
if (!strcasecmp(name,"query_digests")) return (int)variables.query_digests;
if (!strcasecmp(name,"query_digests_lowercase")) return (int)variables.query_digests_lowercase;
if (!strcasecmp(name,"query_digests_normalize_digest_text")) return (int)variables.query_digests_normalize_digest_text;
if (!strcasecmp(name,"query_digests_track_hostname")) return (int)variables.query_digests_track_hostname;
if (!strcasecmp(name,"connpoll_reset_queue_length")) return (int)variables.connpoll_reset_queue_length;
if (!strcasecmp(name,"stats_time_backend_query")) return (int)variables.stats_time_backend_query;
if (!strcasecmp(name,"stats_time_query_processor")) return (int)variables.stats_time_query_processor;
if (!strcasecmp(name,"query_cache_stores_empty_result")) return (int)variables.query_cache_stores_empty_result;
if (!strcasecmp(name,"kill_backend_connection_when_disconnect")) return (int)variables.kill_backend_connection_when_disconnect;
if (!strcasecmp(name,"sessions_sort")) return (int)variables.sessions_sort;
if (!strcmp(name,"servers_stats")) return (int)variables.servers_stats;
if (!strcmp(name,"stacksize")) return ( stacksize ? stacksize : DEFAULT_STACK_SIZE);
}
if (!strncmp(name,"m",1)) {
if (!strcmp(name,"max_allowed_packet")) return (int)variables.max_allowed_packet;
if (!strcmp(name,"max_transaction_time")) return (int)variables.max_transaction_time;
if (!strcmp(name,"max_connections")) return (int)variables.max_connections;
if (!strcmp(name,"max_stmts_per_connection")) return (int)variables.max_stmts_per_connection;
if (!strcmp(name,"max_stmts_cache")) return (int)variables.max_stmts_cache;
if (!strcmp(name,"mirror_max_concurrency")) return (int)variables.mirror_max_concurrency;
if (!strcmp(name,"mirror_max_queue_length")) return (int)variables.mirror_max_queue_length;
}
if (!strncmp(name,"q",1)) {
if (!strcmp(name,"query_retries_on_failure")) return (int)variables.query_retries_on_failure;
if (!strcmp(name,"query_digests_max_digest_length")) return (int)variables.query_digests_max_digest_length;
if (!strcmp(name,"query_digests_max_query_length")) return (int)variables.query_digests_max_query_length;
if (!strcmp(name,"query_processor_iterations")) return (int)variables.query_processor_iterations;
if (!strcmp(name,"query_processor_regex")) return (int)variables.query_processor_regex;
if (!strcmp(name,"query_cache_size_MB")) return (int)variables.query_cache_size_MB;
if (!strcmp(name,"query_digests")) return (int)variables.query_digests;
if (!strcmp(name,"query_digests_lowercase")) return (int)variables.query_digests_lowercase;
if (!strcmp(name,"query_digests_normalize_digest_text")) return (int)variables.query_digests_normalize_digest_text;
if (!strcmp(name,"query_digests_track_hostname")) return (int)variables.query_digests_track_hostname;
}
if (!strncmp(name,"p",1)) {
if (!strcmp(name,"ping_interval_server_msec")) return (int)variables.ping_interval_server_msec;
if (!strcmp(name,"ping_timeout_server")) return (int)variables.ping_timeout_server;
if (!strcmp(name,"poll_timeout")) return variables.poll_timeout;
if (!strcmp(name,"poll_timeout_on_failure")) return variables.poll_timeout_on_failure;
}
if (!strncmp(name,"t",1)) {
if (!strcmp(name,"throttle_connections_per_sec_to_hostgroup")) return (int)variables.throttle_connections_per_sec_to_hostgroup;
if (!strcmp(name,"threshold_query_length")) return (int)variables.threshold_query_length;
if (!strcmp(name,"threshold_resultset_size")) return (int)variables.threshold_resultset_size;
if (!strcmp(name,"throttle_max_bytes_per_second_to_client")) return (int)variables.throttle_max_bytes_per_second_to_client;
if (!strcmp(name,"throttle_ratio_server_to_client")) return (int)variables.throttle_ratio_server_to_client;
}
if (!strncmp(name,"d",1)) {
if (!strcmp(name,"default_reconnect")) return (int)variables.default_reconnect;
if (!strcmp(name,"default_query_delay")) return (int)variables.default_query_delay;
if (!strcmp(name,"default_query_timeout")) return (int)variables.default_query_timeout;
if (!strcmp(name,"default_max_latency_ms")) return (int)variables.default_max_latency_ms;
}
if (!strcmp(name,"eventslog_filesize")) return (int)variables.eventslog_filesize;
if (!strcmp(name,"hostgroup_manager_verbose")) return (int)variables.hostgroup_manager_verbose;
if (!strcmp(name,"binlog_reader_connect_retry_msec")) return (int)variables.binlog_reader_connect_retry_msec;
if (!strcmp(name,"wait_timeout")) return (int)variables.wait_timeout;
if (!strcmp(name,"reset_connection_algorithm")) return (int)variables.reset_connection_algorithm;
if (!strcmp(name,"throttle_max_bytes_per_second_to_client")) return (int)variables.throttle_max_bytes_per_second_to_client;
if (!strcmp(name,"throttle_ratio_server_to_client")) return (int)variables.throttle_ratio_server_to_client;
if (!strcmp(name,"max_connections")) return (int)variables.max_connections;
if (!strcmp(name,"max_stmts_per_connection")) return (int)variables.max_stmts_per_connection;
if (!strcmp(name,"max_stmts_cache")) return (int)variables.max_stmts_cache;
if (!strcmp(name,"mirror_max_concurrency")) return (int)variables.mirror_max_concurrency;
if (!strcmp(name,"mirror_max_queue_length")) return (int)variables.mirror_max_queue_length;
if (!strcmp(name,"default_query_delay")) return (int)variables.default_query_delay;
if (!strcmp(name,"default_query_timeout")) return (int)variables.default_query_timeout;
if (!strcmp(name,"query_processor_iterations")) return (int)variables.query_processor_iterations;
if (!strcmp(name,"query_processor_regex")) return (int)variables.query_processor_regex;
if (!strcmp(name,"auto_increment_delay_multiplex")) return (int)variables.auto_increment_delay_multiplex;
if (!strcmp(name,"default_max_latency_ms")) return (int)variables.default_max_latency_ms;
if (!strcmp(name,"long_query_time")) return (int)variables.long_query_time;
if (!strcmp(name,"free_connections_pct")) return (int)variables.free_connections_pct;
if (!strcmp(name,"have_compress")) return (int)variables.have_compress;
if (!strcmp(name,"have_ssl")) return (int)variables.have_ssl;
if (!strcmp(name,"hostgroup_manager_verbose")) return (int)variables.hostgroup_manager_verbose;
if (!strcmp(name,"multiplexing")) return (int)variables.multiplexing;
if (!strcmp(name,"forward_autocommit")) return (int)variables.forward_autocommit;
if (!strcmp(name,"enforce_autocommit_on_reads")) return (int)variables.enforce_autocommit_on_reads;
if (!strcmp(name,"autocommit_false_not_reusable")) return (int)variables.autocommit_false_not_reusable;
if (!strcmp(name,"autocommit_false_is_transaction")) return (int)variables.autocommit_false_is_transaction;
if (!strcmp(name,"verbose_query_error")) return (int)variables.verbose_query_error;
if (!strcmp(name,"commands_stats")) return (int)variables.commands_stats;
if (!strcmp(name,"query_digests")) return (int)variables.query_digests;
if (!strcmp(name,"query_digests_lowercase")) return (int)variables.query_digests_lowercase;
if (!strcmp(name,"query_digests_normalize_digest_text")) return (int)variables.query_digests_normalize_digest_text;
if (!strcmp(name,"query_digests_track_hostname")) return (int)variables.query_digests_track_hostname;
if (!strcmp(name,"connpoll_reset_queue_length")) return (int)variables.connpoll_reset_queue_length;
if (!strcmp(name,"stats_time_backend_query")) return (int)variables.stats_time_backend_query;
if (!strcmp(name,"stats_time_query_processor")) return (int)variables.stats_time_query_processor;
if (!strcmp(name,"query_cache_stores_empty_result")) return (int)variables.query_cache_stores_empty_result;
if (!strcmp(name,"kill_backend_connection_when_disconnect")) return (int)variables.kill_backend_connection_when_disconnect;
if (!strcmp(name,"sessions_sort")) return (int)variables.sessions_sort;
#ifdef IDLE_THREADS
if (!strcasecmp(name,"session_idle_show_processlist")) return (int)variables.session_idle_show_processlist;
if (!strcmp(name,"session_idle_show_processlist")) return (int)variables.session_idle_show_processlist;
#endif // IDLE_THREADS
if (!strcasecmp(name,"servers_stats")) return (int)variables.servers_stats;
if (!strcasecmp(name,"default_reconnect")) return (int)variables.default_reconnect;
if (!strcasecmp(name,"poll_timeout")) return variables.poll_timeout;
if (!strcasecmp(name,"poll_timeout_on_failure")) return variables.poll_timeout_on_failure;
if (!strcasecmp(name,"stacksize")) return ( stacksize ? stacksize : DEFAULT_STACK_SIZE);
if (!strcasecmp(name,"client_multi_statements")) return (int)variables.client_multi_statements;
if (!strcmp(name,"servers_stats")) return (int)variables.servers_stats;
if (!strcmp(name,"default_reconnect")) return (int)variables.default_reconnect;
if (!strcmp(name,"poll_timeout")) return variables.poll_timeout;
if (!strcmp(name,"poll_timeout_on_failure")) return variables.poll_timeout_on_failure;
if (!strcmp(name,"stacksize")) return ( stacksize ? stacksize : DEFAULT_STACK_SIZE);
if (!strcmp(name,"client_multi_statements")) return (int)variables.client_multi_statements;
proxy_error("Not existing variable: %s\n", name); assert(0);
return 0;
//VALGRIND_ENABLE_ERROR_REPORTING;

Loading…
Cancel
Save