Commit 0cac2b70 authored by Shane Snyder's avatar Shane Snyder
Browse files

add swim_member_state initializer

parent b88a9150
...@@ -1063,6 +1063,7 @@ static int ssg_group_view_create( ...@@ -1063,6 +1063,7 @@ static int ssg_group_view_create(
free(tmp_ms); free(tmp_ms);
goto fini; goto fini;
} }
SWIM_MEMBER_STATE_INIT(tmp_ms->swim_state);
/* resolve self id in group if caller asked for it */ /* resolve self id in group if caller asked for it */
if (self_addr_substr) if (self_addr_substr)
...@@ -1181,6 +1182,10 @@ static void ssg_group_lookup_ult( ...@@ -1181,6 +1182,10 @@ static void ssg_group_lookup_ult(
HASH_ADD(hh, l->view->member_map, id, sizeof(ssg_member_id_t), HASH_ADD(hh, l->view->member_map, id, sizeof(ssg_member_id_t),
l->member_state); l->member_state);
} }
else
{
/* XXX */
}
return; return;
} }
......
...@@ -31,6 +31,11 @@ typedef struct swim_member_state ...@@ -31,6 +31,11 @@ typedef struct swim_member_state
swim_member_status_t status; swim_member_status_t status;
} swim_member_state_t; } swim_member_state_t;
#define SWIM_MEMBER_STATE_INIT(__ms) do { \
__ms.inc_nr = 0; \
__ms.status = SWIM_MEMBER_ALIVE; \
} while(0)
/* Initialize SWIM */ /* Initialize SWIM */
swim_context_t * swim_init( swim_context_t * swim_init(
margo_instance_id mid, margo_instance_id mid,
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment