Commit 0fdec80b authored by Matthieu Dorier's avatar Matthieu Dorier

updated in accordance with new REMI API

parent 10def212
......@@ -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;
......
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