Bugfix: ExpectedUPI error in A40

This commit is contained in:
Scott Lystig Fritchie 2015-09-10 02:15:49 +09:00
parent daf3a3d65a
commit af94d1c1c3

View file

@ -1310,9 +1310,11 @@ react_to_env_A40(Retries, P_newprop, P_latest, LatestUnanimousP, AmHosedP,
ExpectedUPI = if CMode == cp_mode -> []; ExpectedUPI = if CMode == cp_mode -> [];
CMode == ap_mode -> [MyName] CMode == ap_mode -> [MyName]
end, end,
if P_current#projection_v1.upi /= ExpectedUPI if (P_current#projection_v1.upi /= ExpectedUPI orelse
P_current#projection_v1.repairing /= [])
andalso andalso
P_newprop#projection_v1.upi == ExpectedUPI -> (P_newprop#projection_v1.upi == ExpectedUPI andalso
P_newprop#projection_v1.repairing == []) ->
%% I am hosed. I need to shut up and quit disturbing my %% I am hosed. I need to shut up and quit disturbing my
%% peers. If P_latest is the none projection that I wrote %% peers. If P_latest is the none projection that I wrote
%% on a previous iteration and it's also unanimous, then %% on a previous iteration and it's also unanimous, then