1
1

Fix a bug that had us generate an error message and abort startup when there were stale universe directories around. Now, we just ignore them.

This commit was SVN r12472.
Этот коммит содержится в:
Ralph Castain 2006-11-07 21:34:57 +00:00
родитель 31e8f510fe
Коммит a3be8261fb
4 изменённых файлов: 13 добавлений и 9 удалений

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

@ -55,7 +55,7 @@
static struct timeval ompi_rte_ping_wait = {2, 0}; static struct timeval ompi_rte_ping_wait = {2, 0};
int orte_universe_search(opal_list_t *universe_list) int orte_universe_search(opal_list_t *universe_list, bool report_broken_files)
{ {
int ret, exit_status = ORTE_SUCCESS; int ret, exit_status = ORTE_SUCCESS;
#ifndef __WINDOWS__ #ifndef __WINDOWS__
@ -128,8 +128,10 @@ int orte_universe_search(opal_list_t *universe_list)
univ = OBJ_NEW(orte_universe_t); univ = OBJ_NEW(orte_universe_t);
if(ORTE_SUCCESS != (ret = orte_read_universe_setup_file(univ_setup_filename, univ) ) ){ if(ORTE_SUCCESS != (ret = orte_read_universe_setup_file(univ_setup_filename, univ) ) ){
printf("orte_ps: Unable to read the file (%s)\n", univ_setup_filename); if (report_broken_files) {
exit_status = ret; printf("universe_search: Unable to read the file (%s)\n", univ_setup_filename);
exit_status = ret;
}
OBJ_RELEASE(univ); OBJ_RELEASE(univ);
} else { } else {
OBJ_RETAIN(univ); OBJ_RETAIN(univ);
@ -173,8 +175,10 @@ int orte_universe_search(opal_list_t *universe_list)
univ = OBJ_NEW(orte_universe_t); univ = OBJ_NEW(orte_universe_t);
if(ORTE_SUCCESS != (ret = orte_read_universe_setup_file(univ_setup_filename, univ) ) ){ if(ORTE_SUCCESS != (ret = orte_read_universe_setup_file(univ_setup_filename, univ) ) ){
printf("orte_ps: Unable to read the file (%s)\n", univ_setup_filename); if (report_broken_files) {
exit_status = ret; printf("orte_ps: Unable to read the file (%s)\n", univ_setup_filename);
exit_status = ret;
}
OBJ_RELEASE(univ); OBJ_RELEASE(univ);
} else { } else {
OBJ_RETAIN(univ); OBJ_RETAIN(univ);
@ -257,7 +261,7 @@ int orte_universe_exists(orte_universe_t *univ)
* for universes - we have no better discovery mechanism at this time * for universes - we have no better discovery mechanism at this time
*/ */
OBJ_CONSTRUCT(&universes, opal_list_t); OBJ_CONSTRUCT(&universes, opal_list_t);
if (ORTE_SUCCESS != (ret = orte_universe_search(&universes))) { if (ORTE_SUCCESS != (ret = orte_universe_search(&universes, false))) {
/* if nothing was found, that's okay - report anything else */ /* if nothing was found, that's okay - report anything else */
if (ORTE_ERR_NOT_FOUND != ret) { if (ORTE_ERR_NOT_FOUND != ret) {
ORTE_ERROR_LOG(ret); ORTE_ERROR_LOG(ret);

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

@ -148,7 +148,7 @@ ORTE_DECLSPEC int orte_monitor_procs_unregistered(void);
* @retval ORTE_SUCCESS Upon successful search. * @retval ORTE_SUCCESS Upon successful search.
* @retval ORTE_ERROR Upon unsuccessful search. * @retval ORTE_ERROR Upon unsuccessful search.
*/ */
ORTE_DECLSPEC int orte_universe_search(opal_list_t *universe_list); ORTE_DECLSPEC int orte_universe_search(opal_list_t *universe_list, bool report_broken_files);
/** /**
* Check for universe existence * Check for universe existence

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

@ -132,7 +132,7 @@ main(int argc, char *argv[])
if( orte_clean_globals.verbose ) { if( orte_clean_globals.verbose ) {
printf("orte_clean: Acquiring universe list...\n"); printf("orte_clean: Acquiring universe list...\n");
} }
if (ORTE_SUCCESS != (ret = orte_universe_search(&universe_search_result) ) ) { if (ORTE_SUCCESS != (ret = orte_universe_search(&universe_search_result, true) ) ) {
exit_status = ret; exit_status = ret;
goto cleanup; goto cleanup;
} }

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

@ -278,7 +278,7 @@ main(int argc, char *argv[])
if( orte_ps_globals.verbose ) { if( orte_ps_globals.verbose ) {
printf("orte_ps: Acquiring universe list...\n"); printf("orte_ps: Acquiring universe list...\n");
} }
if (ORTE_SUCCESS != (ret = orte_universe_search(&universe_search_result) ) ) { if (ORTE_SUCCESS != (ret = orte_universe_search(&universe_search_result, true) ) ) {
exit_status = ret; exit_status = ret;
goto cleanup; goto cleanup;
} }