|
Lines 1-5
Link Here
|
| 1 |
/*****************************************************************************\ |
1 |
/*****************************************************************************\ |
| 2 |
** tree.c - PMI tree communication handling code |
2 |
* tree.c - PMI tree communication handling code |
| 3 |
***************************************************************************** |
3 |
***************************************************************************** |
| 4 |
* Copyright (C) 2011-2012 National University of Defense Technology. |
4 |
* Copyright (C) 2011-2012 National University of Defense Technology. |
| 5 |
* Written by Hongjia Cao <hjcao@nudt.edu.cn>. |
5 |
* Written by Hongjia Cao <hjcao@nudt.edu.cn>. |
|
Lines 42-48
Link Here
|
| 42 |
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. |
42 |
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. |
| 43 |
\*****************************************************************************/ |
43 |
\*****************************************************************************/ |
| 44 |
|
44 |
|
| 45 |
#if HAVE_CONFIG_H |
45 |
#if HAVE_CONFIG_H |
| 46 |
# include "config.h" |
46 |
# include "config.h" |
| 47 |
#endif |
47 |
#endif |
| 48 |
|
48 |
|
|
Lines 692-707
tree_msg_to_stepds(hostlist_t hl, uint32_t len, char *data)
Link Here
|
| 692 |
int temp_rc = 0, rc = 0; |
692 |
int temp_rc = 0, rc = 0; |
| 693 |
ret_data_info_t *ret_data_info = NULL; |
693 |
ret_data_info_t *ret_data_info = NULL; |
| 694 |
slurm_msg_t *msg = xmalloc(sizeof(slurm_msg_t)); |
694 |
slurm_msg_t *msg = xmalloc(sizeof(slurm_msg_t)); |
| 695 |
forward_data_msg_t req; |
695 |
forward_data_msg_t *req = xmalloc(sizeof(forward_data_msg_t)); |
| 696 |
char *nodelist = NULL; |
696 |
char *nodelist = NULL; |
| 697 |
|
697 |
|
| 698 |
slurm_msg_t_init(msg); |
698 |
slurm_msg_t_init(msg); |
| 699 |
req.address = tree_sock_addr; |
699 |
req->address = tree_sock_addr; |
| 700 |
req.len = len; |
700 |
req->len = len; |
| 701 |
req.data = data; |
701 |
req->data = data; |
| 702 |
|
702 |
|
| 703 |
msg->msg_type = REQUEST_FORWARD_DATA; |
703 |
msg->msg_type = REQUEST_FORWARD_DATA; |
| 704 |
msg->data = &req; |
704 |
msg->data = req; |
| 705 |
|
705 |
|
| 706 |
nodelist = hostlist_ranged_string_xmalloc(hl); |
706 |
nodelist = hostlist_ranged_string_xmalloc(hl); |
| 707 |
|
707 |
|