Skip to content

Commit e11fe2a

Browse files
committed
Save a legacy URI to support older tools
Pre-v4.2 tools will be looking for the PMIX_SERVER_URI instead of the new PMIX_MYSERVER_URI key, so let's store both. Signed-off-by: Ralph Castain <[email protected]>
1 parent 2f13feb commit e11fe2a

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

src/mca/ptl/base/ptl_base_listener.c

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -604,6 +604,15 @@ pmix_status_t pmix_ptl_base_setup_listener(pmix_info_t info[], size_t ninfo)
604604
PMIX_GDS_STORE_KV(rc, pmix_globals.mypeer, &pmix_globals.myid, PMIX_INTERNAL, urikv);
605605
PMIX_RELEASE(urikv); // maintain accounting
606606

607+
/* save a legacy URI internally so we can report it
608+
* to older tools */
609+
urikv = PMIX_NEW(pmix_kval_t);
610+
urikv->key = strdup(PMIX_SERVER_URI);
611+
PMIX_VALUE_CREATE(urikv->value, 1);
612+
PMIX_VALUE_LOAD(urikv->value, lt->uri, PMIX_STRING);
613+
PMIX_GDS_STORE_KV(rc, pmix_globals.mypeer, &pmix_globals.myid, PMIX_INTERNAL, urikv);
614+
PMIX_RELEASE(urikv); // maintain accounting
615+
607616
if (NULL != pmix_ptl_base.report_uri) {
608617
/* if the string is a "-", then output to stdout */
609618
if (0 == strcmp(pmix_ptl_base.report_uri, "-")) {

0 commit comments

Comments
 (0)