Make it much less likely to open up a new btree.

This commit is contained in:
Jesper Louis Andersen 2012-01-07 12:16:24 +01:00
parent aa0fa64928
commit e10208462b

View file

@ -62,7 +62,7 @@ count_dicts(Open) ->
command(#state { open = Open} = S) ->
frequency(
[ {100, {call, ?SERVER, open, [g_btree_name()]}} ] ++
[ {20, {call, ?SERVER, open, [g_btree_name()]}} ] ++
[ {2000, {call, ?SERVER, put, cmd_put_args(S)}}
|| dict:size(Open) > 0] ++
[ {1500, {call, ?SERVER, lookup_exist, cmd_lookup_args(S)}}