Skip to content
Snippets Groups Projects
Commit 859c735f authored by Ruud Overeem's avatar Ruud Overeem
Browse files

Bug 1143:

Hostname must now be specified.
parent 033e4c1a
No related branches found
No related tags found
No related merge requests found
...@@ -209,13 +209,14 @@ GCFEvent::TResult MACScheduler::initial_state(GCFEvent& event, GCFPortInterface& ...@@ -209,13 +209,14 @@ GCFEvent::TResult MACScheduler::initial_state(GCFEvent& event, GCFPortInterface&
string username = pParamSet->getString("OTDBusername"); string username = pParamSet->getString("OTDBusername");
string DBname = pParamSet->getString("OTDBdatabasename"); string DBname = pParamSet->getString("OTDBdatabasename");
string password = pParamSet->getString("OTDBpassword"); string password = pParamSet->getString("OTDBpassword");
string hostname = pParamSet->getString("OTDBhostname");
LOG_DEBUG ("Trying to connect to the OTDB"); LOG_DEBUG_STR ("Trying to connect to the OTDB on " << hostname);
itsOTDBconnection= new OTDBconnection(username, password, DBname); itsOTDBconnection= new OTDBconnection(username, password, DBname, hostname);
ASSERTSTR (itsOTDBconnection, "Memory allocation error (OTDB)"); ASSERTSTR (itsOTDBconnection, "Memory allocation error (OTDB)");
ASSERTSTR (itsOTDBconnection->connect(), ASSERTSTR (itsOTDBconnection->connect(),
"Unable to connect to database " << DBname << " using " << "Unable to connect to database " << DBname << " on " << hostname <<
username << "," << password); " using " << username << "," << password);
LOG_INFO ("Connected to the OTDB"); LOG_INFO ("Connected to the OTDB");
itsPropertySet->setValue(PN_MS_OTDB_CONNECTED, GCFPVBool(true)); itsPropertySet->setValue(PN_MS_OTDB_CONNECTED, GCFPVBool(true));
......
...@@ -2,6 +2,7 @@ ...@@ -2,6 +2,7 @@
prefix = LOFAR.PermSW.MACScheduler prefix = LOFAR.PermSW.MACScheduler
OTDBdatabasename = overeem OTDBdatabasename = overeem
OTDBhostname = dop50.astron.nl
OTDBusername = paulus OTDBusername = paulus
OTDBpassword = boskabouter OTDBpassword = boskabouter
OTDBpollInterval = 5s OTDBpollInterval = 5s
......
in_PROGRAMS = MACScheduler bin_PROGRAMS = MACScheduler
MACScheduler_CPPFLAGS = -DBOOST_DISABLE_THREADS \ MACScheduler_CPPFLAGS = -DBOOST_DISABLE_THREADS \
-Wno-deprecated \ -Wno-deprecated \
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment