Skip to content

Commit

Permalink
usrloc: rpc flush to return error in case of failure
Browse files Browse the repository at this point in the history
  • Loading branch information
miconda committed Jul 8, 2017
1 parent b28e294 commit 3cbae68
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/modules/usrloc/ul_rpc.c
Original file line number Diff line number Diff line change
Expand Up @@ -545,7 +545,9 @@ static const char* ul_rpc_rm_contact_doc[2] = {

static void ul_rpc_flush(rpc_t* rpc, void* ctx)
{
synchronize_all_udomains(0, 1);
if(synchronize_all_udomains(0, 1) != 0) {
rpc->fault(ctx, 500, "Operation failed");
}
return;
}

Expand Down

0 comments on commit 3cbae68

Please sign in to comment.