Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
B
bake
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
7
Issues
7
List
Boards
Labels
Milestones
Merge Requests
2
Merge Requests
2
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
sds
bake
Commits
dc4d8934
Commit
dc4d8934
authored
Apr 04, 2018
by
Shane Snyder
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fixes for new margo api changes
parent
f67c5641
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
7 deletions
+5
-7
src/bake-client.c
src/bake-client.c
+2
-2
src/bake-server.c
src/bake-server.c
+3
-5
No files found.
src/bake-client.c
View file @
dc4d8934
...
...
@@ -847,12 +847,11 @@ int bake_remove(
hret
=
margo_create
(
provider
->
client
->
mid
,
provider
->
addr
,
provider
->
client
->
bake_remove_id
,
&
handle
);
margo_set_target_id
(
handle
,
provider
->
mplex_id
);
if
(
hret
!=
HG_SUCCESS
)
return
(
-
1
);
hret
=
margo_
forward
(
handle
,
&
in
);
hret
=
margo_
provider_forward
(
provider
->
provider_id
,
handle
,
&
in
);
if
(
hret
!=
HG_SUCCESS
)
{
margo_destroy
(
handle
);
...
...
@@ -868,6 +867,7 @@ int bake_remove(
ret
=
out
.
ret
;
margo_free_output
(
handle
,
&
out
);
margo_destroy
(
handle
);
return
(
ret
);
}
src/bake-server.c
View file @
dc4d8934
...
...
@@ -143,8 +143,7 @@ int bake_provider_register(
rpc_id
=
MARGO_REGISTER_PROVIDER
(
mid
,
"bake_remove_rpc"
,
bake_remove_in_t
,
bake_remove_out_t
,
bake_remove_ult
,
provider_id
,
abt_pool
);
margo_register_data
(
mid
,
rpc_id
,
mplex_id
,
(
void
*
)
tmp_svr_ctx
,
NULL
);
margo_register_data
(
mid
,
rpc_id
,
(
void
*
)
tmp_svr_ctx
,
NULL
);
/* install the bake server finalize callback */
margo_push_finalize_callback
(
mid
,
&
bake_server_finalize_cb
,
tmp_svr_ctx
);
...
...
@@ -933,9 +932,8 @@ static void bake_remove_ult(hg_handle_t handle)
margo_instance_id
mid
=
margo_hg_handle_get_instance
(
handle
);
assert
(
mid
);
const
struct
hg_info
*
hgi
=
margo_get_info
(
handle
);
bake_provider_t
svr_ctx
=
margo_registered_data_mplex
(
mid
,
hgi
->
id
,
hgi
->
target_id
);
const
struct
hg_info
*
info
=
margo_get_info
(
handle
);
bake_provider_t
svr_ctx
=
margo_registered_data
(
mid
,
info
->
id
);
if
(
!
svr_ctx
)
{
out
.
ret
=
-
1
;
margo_respond
(
handle
,
&
out
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a 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