mirror of
https://git.rwth-aachen.de/acs/public/villas/node/
synced 2025-03-09 00:00:00 +01:00
remove SuperNode::init()
This commit is contained in:
parent
30c15be7ae
commit
25ff130377
4 changed files with 0 additions and 29 deletions
|
@ -61,23 +61,6 @@ SuperNode::SuperNode() :
|
|||
gethostname(hname, 128);
|
||||
|
||||
name = hname;
|
||||
|
||||
init();
|
||||
}
|
||||
|
||||
int SuperNode::init()
|
||||
{
|
||||
int ret;
|
||||
|
||||
ret = kernel::rt::init(priority, affinity);
|
||||
if (ret)
|
||||
return ret;
|
||||
|
||||
ret = memory_init(hugepages);
|
||||
if (ret)
|
||||
return ret;
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
int SuperNode::parseUri(const std::string &u)
|
||||
|
|
|
@ -167,10 +167,6 @@ int main(int argc, char *argv[])
|
|||
else
|
||||
logger->warn("No configuration file specified. Starting unconfigured. Use the API to configure this instance.");
|
||||
|
||||
ret = sn.init();
|
||||
if (ret)
|
||||
throw new RuntimeError("Failed to initialize super node");
|
||||
|
||||
ret = sn.check();
|
||||
if (ret)
|
||||
throw new RuntimeError("Failed to verify configuration");
|
||||
|
|
|
@ -320,10 +320,6 @@ check: if (optarg == endptr)
|
|||
else
|
||||
logger->warn("No configuration file specified. Starting unconfigured. Use the API to configure this instance.");
|
||||
|
||||
ret = sn.init();
|
||||
if (ret)
|
||||
throw new RuntimeError("Failed to initialize super-node");
|
||||
|
||||
fmt = format_type_lookup(format);
|
||||
if (!fmt)
|
||||
throw new RuntimeError("Invalid format: {}", format);
|
||||
|
|
|
@ -158,10 +158,6 @@ check: if (optarg == endptr)
|
|||
else
|
||||
logger->warn("No configuration file specified. Starting unconfigured. Use the API to configure this instance.");
|
||||
|
||||
ret = sn.init();
|
||||
if (ret)
|
||||
throw new RuntimeError("Initialization failed!");
|
||||
|
||||
node = sn.getNode(nodestr);
|
||||
if (!node)
|
||||
throw new RuntimeError("There's no node with the name '{}'", nodestr);
|
||||
|
|
Loading…
Add table
Reference in a new issue