/* $Id$ */ #include "php.h" #include "mysqlnd.h" #include "mysqlnd_priv.h" #include "mysqlnd_statistics.h" #include "mysqlnd_debug.h" #define STR_W_LEN(str) str, (sizeof(str) - 1) /* {{{ mysqlnd_stats_values_names */ const MYSQLND_STRING mysqlnd_stats_values_names[STAT_LAST] = { { STR_W_LEN("bytes_sent") }, { STR_W_LEN("bytes_received") }, { STR_W_LEN("packets_sent") }, { STR_W_LEN("packets_received") }, { STR_W_LEN("protocol_overhead_in") }, { STR_W_LEN("protocol_overhead_out") }, { STR_W_LEN("bytes_received_ok_packet") }, { STR_W_LEN("bytes_received_eof_packet") }, { STR_W_LEN("bytes_received_rset_header_packet") }, { STR_W_LEN("bytes_received_rset_field_meta_packet") }, { STR_W_LEN("bytes_received_rset_row_packet") }, { STR_W_LEN("bytes_received_prepare_response_packet") }, { STR_W_LEN("bytes_received_change_user_packet") }, { STR_W_LEN("packets_sent_command") }, { STR_W_LEN("packets_received_ok") }, { STR_W_LEN("packets_received_eof") },
#include "mysqlnd_ms_filter_qos.h" #include "mysqlnd_ms_switch.h" #include "fabric/mysqlnd_fabric.h" #include "mysqlnd_ms_xa.h" #include "mysqlnd_ms_conn_pool.h" #ifndef mnd_sprintf #define mnd_sprintf spprintf #define mnd_sprintf_free efree #endif #define STR_W_LEN(str) str, (sizeof(str) - 1) const MYSQLND_STRING mysqlnd_ms_stats_values_names[MS_STAT_LAST] = { { STR_W_LEN("use_slave") }, { STR_W_LEN("use_master") }, { STR_W_LEN("use_slave_guess") }, { STR_W_LEN("use_master_guess") }, { STR_W_LEN("use_slave_sql_hint") }, { STR_W_LEN("use_master_sql_hint") }, { STR_W_LEN("use_last_used_sql_hint") }, { STR_W_LEN("use_slave_callback") }, { STR_W_LEN("use_master_callback") }, { STR_W_LEN("non_lazy_connections_slave_success") }, { STR_W_LEN("non_lazy_connections_slave_failure") }, { STR_W_LEN("non_lazy_connections_master_success") }, { STR_W_LEN("non_lazy_connections_master_failure") }, { STR_W_LEN("lazy_connections_slave_success") }, { STR_W_LEN("lazy_connections_slave_failure") }, { STR_W_LEN("lazy_connections_master_success") },