Fix repair bug that has survived witness additions, oops

This commit is contained in:
Scott Lystig Fritchie 2015-08-14 19:30:36 +09:00
parent 9e02a1ea73
commit d2ce8f8447

View file

@ -697,7 +697,7 @@ calc_projection2(LastProj, RelativeToServer, AllHosed, Dbg,
Simulator_p = proplists:get_value(use_partition_simulator, RunEnv2, false),
SimRepair_p = proplists:get_value(simulate_repair, RunEnv2, true),
{NewUPI_list3, Repairing_list3, RunEnv3} =
case {NewUp, Repairing_list2} of
case {NewUp -- OldWitness_list, Repairing_list2} of
{[], []} ->
D_foo=[d_foo1],
{NewUPI_list, [], RunEnv2};
@ -726,7 +726,7 @@ calc_projection2(LastProj, RelativeToServer, AllHosed, Dbg,
D_foo=[d_foo2],
{NewUPI_list, OldRepairing_list, RunEnv2}
end;
{_, _} ->
{_ABC, _XYZ} ->
D_foo=[d_foo3, {new_upi_list, NewUPI_list}, {new_up, NewUp}, {repairing_list3, OldRepairing_list}],
{NewUPI_list, OldRepairing_list, RunEnv2}
end,