Commit 2bc1140f authored by Philip Carns's avatar Philip Carns

make register_mplex allow 0 mplex id

parent 97042076
......@@ -20,6 +20,7 @@ struct margo_instance;
typedef struct margo_instance* margo_instance_id;
#define MARGO_INSTANCE_NULL ((margo_instance_id)NULL)
#define MARGO_DEFAULT_MPLEX_ID 0
/**
......
......@@ -833,9 +833,9 @@ int margo_register_mplex(margo_instance_id mid, hg_id_t id, uint32_t mplex_id, A
struct mplex_key key;
struct mplex_element *element;
/* mplex_id can't be zero; that's the default handler pool */
if(!mplex_id)
return(-1);
/* nothing to do, we'll let the handler pool take this directly */
if(mplex_id == MARGO_DEFAULT_MPLEX_ID)
return(0);
memset(&key, 0, sizeof(key));
key.id = id;
......
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