@@ -296,94 +296,6 @@ int pmix_server_init(void)
296
296
}
297
297
OPAL_LIST_DESTRUCT (& info );
298
298
299
- /* if the universal server wasn't specified, then we use
300
- * our own HNP for that purpose */
301
- if (NULL == orte_pmix_server_globals .server_uri ) {
302
- orte_pmix_server_globals .server = * ORTE_PROC_MY_HNP ;
303
- } else {
304
- char * server ;
305
- opal_buffer_t buf ;
306
- if (0 == strncmp (orte_pmix_server_globals .server_uri , "file" , strlen ("file" )) ||
307
- 0 == strncmp (orte_pmix_server_globals .server_uri , "FILE" , strlen ("FILE" ))) {
308
- char input [1024 ], * filename ;
309
- FILE * fp ;
310
-
311
- /* it is a file - get the filename */
312
- filename = strchr (orte_pmix_server_globals .server_uri , ':' );
313
- if (NULL == filename ) {
314
- /* filename is not correctly formatted */
315
- orte_show_help ("help-orterun.txt" , "orterun:ompi-server-filename-bad" , true,
316
- orte_basename , orte_pmix_server_globals .server_uri );
317
- return ORTE_ERR_BAD_PARAM ;
318
- }
319
- ++ filename ; /* space past the : */
320
-
321
- if (0 >= strlen (filename )) {
322
- /* they forgot to give us the name! */
323
- orte_show_help ("help-orterun.txt" , "orterun:ompi-server-filename-missing" , true,
324
- orte_basename , orte_pmix_server_globals .server_uri );
325
- return ORTE_ERR_BAD_PARAM ;
326
- }
327
-
328
- /* open the file and extract the uri */
329
- fp = fopen (filename , "r" );
330
- if (NULL == fp ) { /* can't find or read file! */
331
- orte_show_help ("help-orterun.txt" , "orterun:ompi-server-filename-access" , true,
332
- orte_basename , orte_pmix_server_globals .server_uri );
333
- return ORTE_ERR_BAD_PARAM ;
334
- }
335
- if (NULL == fgets (input , 1024 , fp )) {
336
- /* something malformed about file */
337
- fclose (fp );
338
- orte_show_help ("help-orterun.txt" , "orterun:ompi-server-file-bad" , true,
339
- orte_basename , orte_pmix_server_globals .server_uri ,
340
- orte_basename );
341
- return ORTE_ERR_BAD_PARAM ;
342
- }
343
- fclose (fp );
344
- input [strlen (input )- 1 ] = '\0' ; /* remove newline */
345
- server = strdup (input );
346
- } else {
347
- server = strdup (orte_pmix_server_globals .server_uri );
348
- }
349
- /* setup our route to the server */
350
- OBJ_CONSTRUCT (& buf , opal_buffer_t );
351
- opal_dss .pack (& buf , & server , 1 , OPAL_STRING );
352
- if (ORTE_SUCCESS != (rc = orte_rml_base_update_contact_info (& buf ))) {
353
- ORTE_ERROR_LOG (rc );
354
- ORTE_UPDATE_EXIT_STATUS (ORTE_ERROR_DEFAULT_EXIT_CODE );
355
- return rc ;
356
- }
357
- OBJ_DESTRUCT (& buf );
358
- /* parse the URI to get the server's name */
359
- if (ORTE_SUCCESS != (rc = orte_rml_base_parse_uris (server , & orte_pmix_server_globals .server , NULL ))) {
360
- ORTE_ERROR_LOG (rc );
361
- return rc ;
362
- }
363
- /* check if we are to wait for the server to start - resolves
364
- * a race condition that can occur when the server is run
365
- * as a background job - e.g., in scripts
366
- */
367
- if (orte_pmix_server_globals .wait_for_server ) {
368
- /* ping the server */
369
- struct timeval timeout ;
370
- timeout .tv_sec = orte_pmix_server_globals .timeout ;
371
- timeout .tv_usec = 0 ;
372
- if (ORTE_SUCCESS != (rc = orte_rml .ping (orte_mgmt_conduit , server , & timeout ))) {
373
- /* try it one more time */
374
- if (ORTE_SUCCESS != (rc = orte_rml .ping (orte_mgmt_conduit , server , & timeout ))) {
375
- /* okay give up */
376
- orte_show_help ("help-orterun.txt" , "orterun:server-not-found" , true,
377
- orte_basename , server ,
378
- (long )orte_pmix_server_globals .timeout ,
379
- ORTE_ERROR_NAME (rc ));
380
- ORTE_UPDATE_EXIT_STATUS (ORTE_ERROR_DEFAULT_EXIT_CODE );
381
- return rc ;
382
- }
383
- }
384
- }
385
- }
386
-
387
299
return rc ;
388
300
}
389
301
@@ -716,8 +628,9 @@ OBJ_CLASS_INSTANCE(orte_pmix_server_op_caddy_t,
716
628
static void rqcon (pmix_server_req_t * p )
717
629
{
718
630
p -> operation = NULL ;
719
- p -> target = * ORTE_NAME_INVALID ;
631
+ p -> range = OPAL_PMIX_RANGE_SESSION ;
720
632
p -> proxy = * ORTE_NAME_INVALID ;
633
+ p -> target = * ORTE_NAME_INVALID ;
721
634
p -> timeout = orte_pmix_server_globals .timeout ;
722
635
p -> jdata = NULL ;
723
636
OBJ_CONSTRUCT (& p -> msg , opal_buffer_t );
0 commit comments