Commit 3375e116 authored by Shane Snyder's avatar Shane Snyder

a valid handler pool is required for client mode

clients still may need a handler pool to spawn lookup ULTs (in
the case they are attaching to a group)
parent dbd0bd94
......@@ -174,8 +174,6 @@ margo_instance_id margo_init(const char *addr_str, int mode,
if (ret != ABT_SUCCESS) goto err;
}
if (mode == MARGO_SERVER_MODE)
{
if (rpc_thread_count > 0)
{
rpc_xstreams = calloc(rpc_thread_count, sizeof(*rpc_xstreams));
......@@ -205,7 +203,6 @@ margo_instance_id margo_init(const char *addr_str, int mode,
{
rpc_pool = progress_pool;
}
}
hg_class = HG_Init(addr_str, listen_flag);
if(!hg_class) goto err;
......@@ -1178,9 +1175,8 @@ static hg_return_t margo_handle_cache_init(margo_instance_id mid)
int i;
struct margo_handle_cache_el *el;
hg_return_t hret = HG_SUCCESS;
int ret;
ret = ABT_mutex_create(&(mid->handle_cache_mtx));
ABT_mutex_create(&(mid->handle_cache_mtx));
for(i = 0; i < DEFAULT_MERCURY_HANDLE_CACHE_SIZE; i++)
{
......
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