fix: leave the NUMA split plan clean when the split is refused

This commit is contained in:
Baptiste Rajaut authored and Niko1221 committed 2026-10-20 10:22:05 +02:00
1 parent c4442fed95
commit ec841ca1e9
2 files changed
+7 -1

No files matched your search

+5
View File
@@ -741,6 +741,11 @@ ExpertPool::ExpertPool(int n_workers, bool pin, bool host_works, PoolAffinity af
}
plan.why = why;
plan.on = plan.why.empty();
if (!plan.on) { // a refusal after the slices were planned (unbalanced) leaves no half-filled plan behind
plan.nodes[0] = plan.nodes[1] = -1;
plan.cores[0].clear();
plan.cores[1].clear();
}
if (plan.on) {
numa_n_ = 2;
nsync_.reset(new NodeSync[2]);