Add author_server to CONFIRM messages
This commit is contained in:
parent
d5c3da78fb
commit
0f543b4c4d
1 changed files with 3 additions and 2 deletions
|
@ -2485,12 +2485,13 @@ poll_private_proj_is_upi_unanimous3(#ch_mgr{name=MyName, proj=P_current} = S) ->
|
||||||
ProjStore = get_projection_store_pid_or_regname(S),
|
ProjStore = get_projection_store_pid_or_regname(S),
|
||||||
#projection_v1{epoch_number=_EpochRep,
|
#projection_v1{epoch_number=_EpochRep,
|
||||||
epoch_csum= <<_CSumRep:4/binary,_/binary>>,
|
epoch_csum= <<_CSumRep:4/binary,_/binary>>,
|
||||||
|
author_server=AuthRep,
|
||||||
upi=_UPIRep,
|
upi=_UPIRep,
|
||||||
repairing=_RepairingRep} = NewProj,
|
repairing=_RepairingRep} = NewProj,
|
||||||
ok = machi_projection_store:write(ProjStore, private, NewProj),
|
ok = machi_projection_store:write(ProjStore, private, NewProj),
|
||||||
case proplists:get_value(private_write_verbose_confirm, S#ch_mgr.opts) of
|
case proplists:get_value(private_write_verbose_confirm, S#ch_mgr.opts) of
|
||||||
true ->
|
true ->
|
||||||
error_logger:info_msg("CONFIRM epoch ~w ~w upi ~w rep ~w by ~w\n", [_EpochRep, _CSumRep, _UPIRep, _RepairingRep, MyName]);
|
error_logger:info_msg("CONFIRM epoch ~w ~w upi ~w rep ~w auth ~w by ~w\n", [_EpochRep, _CSumRep, _UPIRep, _RepairingRep, AuthRep, MyName]);
|
||||||
_ ->
|
_ ->
|
||||||
ok
|
ok
|
||||||
end,
|
end,
|
||||||
|
@ -2988,7 +2989,7 @@ perhaps_verbose_c111(P_latest2, #ch_mgr{name=MyName, opts=Opts}=S) ->
|
||||||
(S#ch_mgr.proj)#projection_v1.upi /= [] ->
|
(S#ch_mgr.proj)#projection_v1.upi /= [] ->
|
||||||
<<CSumRep:4/binary,_/binary>> =
|
<<CSumRep:4/binary,_/binary>> =
|
||||||
P_latest2#projection_v1.epoch_csum,
|
P_latest2#projection_v1.epoch_csum,
|
||||||
error_logger:info_msg("CONFIRM epoch ~w ~w upi ~w rep ~w by ~w\n", [(S#ch_mgr.proj)#projection_v1.epoch_number, CSumRep, P_latest2#projection_v1.upi, P_latest2#projection_v1.repairing, S#ch_mgr.name]);
|
error_logger:info_msg("CONFIRM epoch ~w ~w upi ~w rep ~w auth ~w by ~w\n", [(S#ch_mgr.proj)#projection_v1.epoch_number, CSumRep, P_latest2#projection_v1.upi, P_latest2#projection_v1.repairing, P_latest2#projection_v1.author_server, S#ch_mgr.name]);
|
||||||
true ->
|
true ->
|
||||||
ok
|
ok
|
||||||
end;
|
end;
|
||||||
|
|
Loading…
Reference in a new issue