1
1

Break a circular logic loop in the cm routed module.

This commit was SVN r21708.
Этот коммит содержится в:
Ralph Castain 2009-07-17 18:07:35 +00:00
родитель d432c9fdbc
Коммит 08e17b72cf

Просмотреть файл

@ -303,15 +303,6 @@ static orte_process_name_t get_route(orte_process_name_t *target)
goto found;
}
/* if I am a daemon, route it through the HNP to avoid
* opening unnecessary sockets
*/
if (ORTE_PROC_IS_DAEMON) {
ret = ORTE_PROC_MY_HNP;
goto found;
}
/* if the job family is zero, then this is going to a local slave,
* so the path is direct
*/
@ -351,7 +342,16 @@ static orte_process_name_t get_route(orte_process_name_t *target)
ret = target;
goto found;
} else {
/* send to that daemon */
/* if I am a daemon, route it through the HNP to avoid
* opening unnecessary sockets
*/
if (ORTE_PROC_IS_DAEMON) {
ret = ORTE_PROC_MY_HNP;
goto found;
}
/* otherwise, if I am the HNP, send to that daemon */
ret = &daemon;
goto found;
}