Commit c1e918ab authored by Stanislav Bohm's avatar Stanislav Bohm

FIX: Fixed plan initialization

parent 0e591014
......@@ -24,7 +24,8 @@ ComputationState::ComputationState(Server &server) : server(server)
void ComputationState::set_plan(Plan &&plan)
{
this->plan = std::move(plan);
auto task_ids = plan.get_init_tasks();
auto task_ids = this->plan.get_init_tasks();
assert(!task_ids.empty());
add_ready_nodes(task_ids);
}
......
......@@ -19,7 +19,7 @@ TaskManager::TaskManager(Server &server)
void TaskManager::add_plan(Plan &&plan, bool report)
{
this->report = report;
cstate.set_plan(std::move(plan));
cstate.set_plan(std::move(plan));
distribute_work(Scheduler(cstate).schedule());
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment