Changed default master port to 3306

Changed default master port to 3306
This commit is contained in:
MassimilianoPinto 2015-07-13 12:44:03 +02:00
parent 5165c6b981
commit a16d4c46d6
3 changed files with 2 additions and 3 deletions

BIN
.DS_Store vendored Normal file

Binary file not shown.

View File

@ -431,7 +431,7 @@ int rc = 0;
if (service->dbref == NULL) {
SERVICE *service = inst->service;
SERVER *server;
server = server_alloc("none", "MySQLBackend", (int)1234);
server = server_alloc("none", "MySQLBackend", (int)3306);
if (server == NULL) {
LOGIF(LE, (skygw_log_write_flush(LOGFILE_ERROR,
"%s: Error for server_alloc in createInstance",
@ -1505,7 +1505,6 @@ SERVICE *service;
if (strcmp(name, "master_host") == 0) {
server_update_address(service->dbref->server, (char *)value);
} else if (strcmp(name, "master_port") == 0) {
server_update_port(service->dbref->server, (short)atoi(value));
} else if (strcmp(name, "filestem") == 0) {

View File

@ -3194,7 +3194,7 @@ blr_master_restore_config(ROUTER_INSTANCE *router, MASTER_SERVER_CFG *prev_maste
static void
blr_master_set_empty_config(ROUTER_INSTANCE *router) {
server_update_address(router->service->dbref->server, "none");
server_update_port(router->service->dbref->server, (unsigned short)1234);
server_update_port(router->service->dbref->server, (unsigned short)3306);
router->binlog_position = 4;
strcpy(router->binlog_name, "");