Change default value of chmgr's use_partition_simulator to false

This commit is contained in:
Scott Lystig Fritchie 2015-05-08 13:40:44 +09:00
parent 49d587039e
commit ae1d038abe
2 changed files with 3 additions and 2 deletions

View file

@ -171,7 +171,7 @@ init({MyName, InitMembersDict, MgrOpts}) ->
All_list = [P#p_srvr.name || {_, P} <- orddict:to_list(MembersDict)],
Opt = fun(Key, Default) -> proplists:get_value(Key, MgrOpts, Default) end,
RunEnv = [{seed, Opt(seed, now())},
{use_partition_simulator, Opt(use_partition_simulator, true)},
{use_partition_simulator, Opt(use_partition_simulator, false)},
{network_partitions, Opt(network_partitions, [])},
{network_islands, Opt(network_islands, [])},
{flapping_i, Opt(flapping, [])},

View file

@ -167,7 +167,8 @@ convergence_demo_testfun(NumFLUs) ->
{Name, PPid}
end || {#p_srvr{name=Name}=P, _Dir} <- PsDirs],
MembersDict = machi_projection:make_members_dict(Ps),
MgrOpts = [private_write_verbose, {active_mode,false}],
MgrOpts = [private_write_verbose, {active_mode,false},
{use_partition_simulator, true}],
MgrNamez =
[begin
{ok, MPid} = ?MGR:start_link(P#p_srvr.name, MembersDict, MgrOpts),