Replaced RWSplit parameters write_ses_variables_to_all and read_ses_variables_from_slaves with
use_sql_variables_in=[master|all] (default all) Modified MaxScale Configuration And Usage Scenarios-Z3.pdf and MaxScale_template.cnf accordingly. Fixed typo in server/modules/routing/readwritesplit/test/rwsplit.sh
This commit is contained in:
@ -118,8 +118,7 @@ typedef enum select_criteria {
|
||||
/** default values for rwsplit configuration parameters */
|
||||
#define CONFIG_MAX_SLAVE_CONN 1
|
||||
#define CONFIG_MAX_SLAVE_RLAG -1 /*< not used */
|
||||
#define CONFIG_READ_SESVARS_FROM_SLAVES false
|
||||
#define CONFIG_WRITE_SESVARS_TO_ALL true
|
||||
#define CONFIG_SQL_VARIABLES_IN TYPE_ALL
|
||||
|
||||
#define GET_SELECT_CRITERIA(s) \
|
||||
(strncmp(s,"LEAST_GLOBAL_CONNECTIONS", strlen("LEAST_GLOBAL_CONNECTIONS")) == 0 ? \
|
||||
@ -234,9 +233,7 @@ typedef struct rwsplit_config_st {
|
||||
int rw_max_slave_conn_count;
|
||||
select_criteria_t rw_slave_select_criteria;
|
||||
int rw_max_slave_replication_lag;
|
||||
/** Route user- & system variable writes to all backends */
|
||||
bool rw_write_sesvars_to_all;
|
||||
/** Route queries including user- & system variables to slaves */
|
||||
target_t rw_use_sql_variables_in;
|
||||
bool rw_read_sesvars_from_slaves;
|
||||
|
||||
} rwsplit_config_t;
|
||||
|
Reference in New Issue
Block a user