Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
sds
margo
Commits
2bc1140f
Commit
2bc1140f
authored
May 20, 2017
by
Philip Carns
Browse files
make register_mplex allow 0 mplex id
parent
97042076
Changes
2
Hide whitespace changes
Inline
Side-by-side
include/margo.h
View file @
2bc1140f
...
...
@@ -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
/**
...
...
src/margo.c
View file @
2bc1140f
...
...
@@ -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
;
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment