Added flag which determines the connection type for embedded server.

This commit is contained in:
vraatikka
2013-07-09 10:14:11 +03:00
parent 38bb376e27
commit 06ebb0319d

View File

@ -68,6 +68,11 @@ load_mysql_users(SERVICE *service)
return -1;
}
if (mysql_options(con, MYSQL_OPT_USE_REMOTE_CONNECTION, NULL)) {
skygw_log_write_flush(NULL, "Fatal : failed to set external connection. "
"It is needed for backend server connections. Exiting.\n");
return -1;
}
/*
* Attempt to connect to each database in the service in turn until
* we find one that we can connect to or until we run out of databases