Commit 457ce686 authored by Nicolas Denoyelle's avatar Nicolas Denoyelle

fallback to hop distance if matrix distance failed

parent 6240292e
Pipeline #7522 passed with stages
in 7 minutes and 50 seconds
......@@ -272,13 +272,13 @@ aml_replicaset_hwloc_data_create(const hwloc_obj_type_t initiator_type,
/* For each initiator set best target */
while (initiator != NULL) {
if (distances == NULL)
target = aml_replicaset_hwloc_closest_hop_obj(
initiator, target_type);
else
if (distances != NULL)
target = aml_replicaset_hwloc_closest_obj(
initiator, target_type, kind, distances,
order);
if (distances == NULL || target == NULL)
target = aml_replicaset_hwloc_closest_hop_obj(
initiator, target_type);
if (target == NULL) {
aml_errno = AML_EINVAL;
goto err_with_distances;
......
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