From 856d6477624c20e1812b7b929b656fab534b85d0 Mon Sep 17 00:00:00 2001 From: Carlos Segarra Date: Wed, 10 Jan 2024 18:24:45 +0000 Subject: [PATCH] planner: propagate the single host hint (not set it in terms of the decision) --- src/planner/Planner.cpp | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/src/planner/Planner.cpp b/src/planner/Planner.cpp index bf3e0c610..a4550fb71 100644 --- a/src/planner/Planner.cpp +++ b/src/planner/Planner.cpp @@ -768,10 +768,8 @@ void Planner::dispatchSchedulingDecision( hostRequests[thisHost]->set_type(req->type()); hostRequests[thisHost]->set_subtype(req->subtype()); hostRequests[thisHost]->set_contextdata(req->contextdata()); - - if (decision->isSingleHost()) { - hostRequests[thisHost]->set_singlehost(true); - } + // Propagate the single host hint + hostRequests[thisHost]->set_singlehost(req->singlehost()); } *hostRequests[thisHost]->add_messages() = msg;