Add upi_unanimous annotation to AP mode
This commit is contained in:
parent
fe8ff6033d
commit
5efec1b6cd
2 changed files with 12 additions and 6 deletions
|
@ -2067,11 +2067,18 @@ projection_transition_is_sane_except_si_epoch(
|
|||
stack, Trace}
|
||||
end.
|
||||
|
||||
poll_private_proj_is_upi_unanimous(#ch_mgr{consistency_mode=ap_mode} = S) ->
|
||||
S;
|
||||
poll_private_proj_is_upi_unanimous(#ch_mgr{consistency_mode=cp_mode,
|
||||
proj_unanimous={_,_,_}} = S) ->
|
||||
poll_private_proj_is_upi_unanimous(#ch_mgr{proj_unanimous={_,_,_}} = S) ->
|
||||
S;
|
||||
poll_private_proj_is_upi_unanimous(#ch_mgr{consistency_mode=ap_mode,
|
||||
proj=Proj} = S) ->
|
||||
if Proj#projection_v1.upi == [] % Nobody to poll?
|
||||
orelse
|
||||
Proj#projection_v1.epoch_number == 0 -> % Skip polling for epoch 0?
|
||||
S;
|
||||
true ->
|
||||
%% Try it just a single time, no other waiting
|
||||
poll_private_proj_is_upi_unanimous3(S)
|
||||
end;
|
||||
poll_private_proj_is_upi_unanimous(#ch_mgr{consistency_mode=cp_mode,
|
||||
proj_unanimous=false,
|
||||
proj=Proj} = S) ->
|
||||
|
|
|
@ -272,8 +272,7 @@ convergence_demo_testfun(NumFLUs, MgrOpts0) ->
|
|||
io:format(user, "\nSweet, private projections are stable\n", []),
|
||||
io:format(user, "\t~P\n", [get(stable), 14]),
|
||||
io:format(user, "Rolling sanity check ... ", []),
|
||||
MaxFiles = 130, io:format(user, "Sweet, NOTICE: alternative MaxFiles=~w\n", [MaxFiles]),
|
||||
%% MaxFiles = 800,
|
||||
MaxFiles = 20,
|
||||
PrivProjs = [{Name, begin
|
||||
{ok, Ps8} = ?FLU_PC:get_all_projections(
|
||||
FLU, private, infinity),
|
||||
|
|
Loading…
Reference in a new issue