Skip to content

Commit cf6e031

Browse files
Merge pull request #91 from saibalde/fix_member_store_return_code
Set proper return code in member store
2 parents f98f83b + ede4344 commit cf6e031

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/fenix_data_policy_in_memory_raid.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -489,6 +489,7 @@ int __imr_member_store(fenix_group_t* g, int member_id,
489489
free(recv_buf);
490490
free(serialized);
491491

492+
retval = FENIX_SUCCESS;
492493
} else if(group->raid_mode == 5){
493494
//TODO: Try to optimize for partial commits - currently does parity on the whole region regardless of commit area.
494495
//TODO: I'm not sure if this is the best way to do this - could be a bottleneck if this is unoptimized since this
@@ -558,6 +559,7 @@ int __imr_member_store(fenix_group_t* g, int member_id,
558559

559560
//Finally, each node has the right stuff.
560561

562+
retval = FENIX_SUCCESS;
561563
} else {
562564
debug_print("ERROR Fenix_Data_member_store: Raid mode <%d> is not supported yet!\n",
563565
group->raid_mode);

0 commit comments

Comments
 (0)