Added default value for max_slave_connections=1. It is set when router instance is created. Default value is overwritten if configuration parameter is found.
Added missing makefile to server/modules/routing/test . It is needed for system testing. Prior this fix, 'make testall' failed because the makefile was missing.
This commit is contained in:
		| @ -353,6 +353,12 @@ static ROUTER* createInstance( | ||||
| 			} | ||||
| 		} | ||||
| 	} | ||||
| 	/**  | ||||
|          * Set default value for max_slave_connections. | ||||
|          * If parameter is set in config file this setting will be overwritten. | ||||
|          */ | ||||
|         router->rwsplit_config.rw_max_slave_conn_count = CONFIG_MAX_SLAVE_CONN; | ||||
|          | ||||
| 	/** | ||||
|          * Copy all config parameters from service to router instance. | ||||
|          * Finally, copy version number to indicate that configs match. | ||||
| @ -413,7 +419,7 @@ static void* newSession( | ||||
| #if defined(SS_DEBUG) | ||||
|         client_rses->rses_chk_top = CHK_NUM_ROUTER_SES; | ||||
|         client_rses->rses_chk_tail = CHK_NUM_ROUTER_SES; | ||||
| #endif         | ||||
| #endif | ||||
|         /**  | ||||
|          * If service config has been changed, reload config from service to  | ||||
|          * router instance first. | ||||
|  | ||||
		Reference in New Issue
	
	Block a user
	 VilhoRaatikka
					VilhoRaatikka