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
8
Issues
8
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
0fdec80b
Commit
0fdec80b
authored
Oct 23, 2018
by
Matthieu Dorier
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
updated in accordance with new REMI API
parent
10def212
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
4 deletions
+7
-4
src/bake-server.c
src/bake-server.c
+7
-4
No files found.
src/bake-server.c
View file @
0fdec80b
...
...
@@ -123,7 +123,8 @@ int bake_provider_register(
/* check if a REMI provider exists with the same provider id */
{
int
flag
;
remi_provider_registered
(
mid
,
provider_id
,
&
flag
,
NULL
,
NULL
);
// TODO pass an actual ABT-IO instance
remi_provider_registered
(
mid
,
provider_id
,
&
flag
,
NULL
,
NULL
,
NULL
);
if
(
flag
)
{
fprintf
(
stderr
,
"bake_provider_register(): a REMI provider with the same (%d) already exists
\n
"
,
provider_id
);
return
BAKE_ERR_REMI
;
...
...
@@ -212,14 +213,16 @@ int bake_provider_register(
}
/* register a REMI client */
ret
=
remi_client_init
(
mid
,
&
(
tmp_svr_ctx
->
remi_client
));
// TODO actually use an ABT-IO instance
ret
=
remi_client_init
(
mid
,
ABT_IO_INSTANCE_NULL
,
&
(
tmp_svr_ctx
->
remi_client
));
if
(
ret
!=
REMI_SUCCESS
)
{
// XXX unregister RPCs, cleanup tmp_svr_ctx before returning
return
BAKE_ERR_REMI
;
}
/* register a REMI provider */
ret
=
remi_provider_register
(
mid
,
provider_id
,
abt_pool
,
&
(
tmp_svr_ctx
->
remi_provider
));
// TODO actually use an ABT-IO instance
ret
=
remi_provider_register
(
mid
,
ABT_IO_INSTANCE_NULL
,
provider_id
,
abt_pool
,
&
(
tmp_svr_ctx
->
remi_provider
));
if
(
ret
!=
REMI_SUCCESS
)
{
// XXX unregister RPCs, cleanup tmp_svr_ctx before returning
return
BAKE_ERR_REMI
;
...
...
@@ -1360,7 +1363,7 @@ static void bake_migrate_target_ult(hg_handle_t handle)
}
/* issue the migration */
int
status
=
0
;
ret
=
remi_fileset_migrate
(
remi_ph
,
local_fileset
,
in
.
dest_root
,
in
.
remove_src
,
&
status
);
ret
=
remi_fileset_migrate
(
remi_ph
,
local_fileset
,
in
.
dest_root
,
in
.
remove_src
,
REMI_USE_ABTIO
,
&
status
);
if
(
ret
!=
REMI_SUCCESS
)
{
out
.
ret
=
BAKE_ERR_REMI
;
goto
finish
;
...
...
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