From d1fe8b6b9078e1ae7af04b22030f0a09857d49ca Mon Sep 17 00:00:00 2001 From: Ralph Castain Date: Wed, 18 May 2005 16:36:11 +0000 Subject: [PATCH] Move an output message so it only comes out under specific conditions. You will now receive a message indicating that an existing universe was detected, but connection to it was refused. The system will tell you the name it created for the new universe it will now be using. This commit was SVN r5747. --- src/runtime/orte_init_stage1.c | 32 ++++++++++++++++---------------- 1 file changed, 16 insertions(+), 16 deletions(-) diff --git a/src/runtime/orte_init_stage1.c b/src/runtime/orte_init_stage1.c index 7ba1628521..606d28801e 100644 --- a/src/runtime/orte_init_stage1.c +++ b/src/runtime/orte_init_stage1.c @@ -208,23 +208,23 @@ int orte_init_stage1(void) orte_process_info.gpr_replica_uri = strdup(univ.seed_uri); } else { if (ORTE_ERR_NOT_FOUND != ret) { - /* if it exists but no contact could be established, - * define unique name based on current one. - * and start new universe with me as seed - */ - universe = strdup(orte_universe_info.name); - free(orte_universe_info.name); - orte_universe_info.name = NULL; - pid = getpid(); - if (0 > asprintf(&orte_universe_info.name, "%s-%d", universe, pid)) { - ompi_output(0, "orte_init: failed to create unique universe name"); - return ret; - } - } - ompi_output(0, "Could not join an existing universe"); - ompi_output(0, "Establishing a new one named: %s", - orte_universe_info.name); + /* if it exists but no contact could be established, + * define unique name based on current one. + * and start new universe with me as seed + */ + universe = strdup(orte_universe_info.name); + free(orte_universe_info.name); + orte_universe_info.name = NULL; + pid = getpid(); + if (0 > asprintf(&orte_universe_info.name, "%s-%d", universe, pid)) { + ompi_output(0, "orte_init: failed to create unique universe name"); + return ret; + } + ompi_output(0, "Could not join a running, existing universe"); + ompi_output(0, "Establishing a new one named: %s", + orte_universe_info.name); + } orte_process_info.seed = true; /* since we are seed, ensure that all replica info is NULL'd */ if (NULL != orte_process_info.ns_replica_uri) {