Skip to content

Commit 3299b07

Browse files
committed
Merge pull request #287 from nkogteva/oob_ud
OOB UD: fix case when multiple oob components specified in command line
2 parents 578fe41 + 8dd21c7 commit 3299b07

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

orte/mca/oob/ud/oob_ud_component.c

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -481,9 +481,12 @@ static int mca_oob_ud_component_set_addr(orte_process_name_t *peer, char **uris)
481481
OPAL_THREAD_LOCK(&mca_oob_ud_component.ud_lock);
482482

483483
for (int i = 0; NULL != uris[i]; i++) {
484-
if (NULL != mca_oob_ud_module.api.set_addr) {
485-
if (ORTE_SUCCESS != (rc = mca_oob_ud_module.api.set_addr(peer, uris[i]))) {
486-
return rc;
484+
if (0 == strncmp(uris[i], "ud:", 3)) {
485+
if (NULL != mca_oob_ud_module.api.set_addr) {
486+
if (ORTE_SUCCESS != (rc = mca_oob_ud_module.api.set_addr(peer, uris[i]))) {
487+
OPAL_THREAD_UNLOCK(&mca_oob_ud_component.ud_lock);
488+
return rc;
489+
}
487490
}
488491
}
489492
}

0 commit comments

Comments
 (0)