Bugfix: ignore creation_time in make_comparison_stable()

This commit is contained in:
Scott Lystig Fritchie 2015-08-31 15:40:19 +09:00
parent c637939cc2
commit a095e0cfc3

View file

@ -1572,9 +1572,9 @@ react_to_env_A40(Retries, P_newprop, P_latest, LatestUnanimousP,
orelse orelse
P_latestStable /= P_currentStable) -> P_latestStable /= P_currentStable) ->
?REACT({a40, ?LINE, ?REACT({a40, ?LINE,
[{latest_epoch, P_latest#projection_v1.epoch_number}, [{latest, P_latestStable},
{current_epoch, P_current#projection_v1.epoch_number}, {current, P_currentStable},
{neq, P_latest /= P_current}]}), {neq, P_latestStable /= P_currentStable}]}),
%% Both of these cases are rare. Elsewhere, the code %% Both of these cases are rare. Elsewhere, the code
%% assumes that the local FLU's projection store is always %% assumes that the local FLU's projection store is always
@ -3566,7 +3566,7 @@ is_annotated(#projection_v1{dbg2=Dbg2}) ->
proplists:get_value(private_proj_is_upi_unanimous, Dbg2, false). proplists:get_value(private_proj_is_upi_unanimous, Dbg2, false).
make_comparison_stable(P) -> make_comparison_stable(P) ->
P#projection_v1{flap=undefined, dbg2=[]}. P#projection_v1{creation_time=undefined, flap=undefined, dbg2=[]}.
has_make_zerf_annotation(P) -> has_make_zerf_annotation(P) ->
case proplists:get_value(make_zerf, P#projection_v1.dbg2) of case proplists:get_value(make_zerf, P#projection_v1.dbg2) of