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

BugID: 796

parent fad72ee9
No related branches found
No related tags found
No related merge requests found
...@@ -21,7 +21,7 @@ ...@@ -21,7 +21,7 @@
//# $Id$ //# $Id$
#include <lofar_config.h> #include <lofar_config.h>
#include <Common/LofarLogger.h> #include <Common/LofarLogger.h>
#include <Common/Deployment.h> #include <Deployment/StationInfo.h>
#include <boost/shared_array.hpp> #include <boost/shared_array.hpp>
#include <APS/ParameterSet.h> #include <APS/ParameterSet.h>
...@@ -42,6 +42,7 @@ using namespace LOFAR::GCF::Common; ...@@ -42,6 +42,7 @@ using namespace LOFAR::GCF::Common;
using namespace LOFAR::GCF::TM; using namespace LOFAR::GCF::TM;
using namespace LOFAR::GCF::PAL; using namespace LOFAR::GCF::PAL;
using namespace LOFAR::OTDB; using namespace LOFAR::OTDB;
using namespace LOFAR::Deployment;
using namespace std; using namespace std;
namespace LOFAR { namespace LOFAR {
...@@ -446,10 +447,11 @@ void MACScheduler::_doOTDBcheck() ...@@ -446,10 +447,11 @@ void MACScheduler::_doOTDBcheck()
OTDB::TreeMaintenance tm(itsOTDBconnection); OTDB::TreeMaintenance tm(itsOTDBconnection);
OTDB::treeIDType treeID = newTreeList[idx].treeID(); OTDB::treeIDType treeID = newTreeList[idx].treeID();
OTDBnode topNode = tm.getTopNode(treeID); OTDBnode topNode = tm.getTopNode(treeID);
string filename = string(LOFAR_SHARE_LOCATION) + // NOTE: this name must be the same as in the ChildControl.
"/" + cntlrName; string filename = formatString("%s/Observation_%d",
LOFAR_SHARE_LOCATION, treeID);
if (!tm.exportTree(treeID, topNode.nodeID(), filename)) { if (!tm.exportTree(treeID, topNode.nodeID(), filename)) {
LOG_ERROR_STR ("Cannot create startup file " << filename << LOG_ERROR_STR ("Cannot create parset file " << filename <<
" for new observation. Observation CANNOT BE STARTED!"); " for new observation. Observation CANNOT BE STARTED!");
} }
else { else {
......
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