Whitespace fixes (s/tab/space/g) and added two new configuration settings

from the 1.5.0 release.  Checkpoint every second, dump stats every 30 sec.
This commit is contained in:
Gregory Burd 2013-03-14 15:26:28 -04:00
parent 85fadeec70
commit 3543b42df8
2 changed files with 61 additions and 56 deletions

View file

@ -110,11 +110,13 @@ start(Partition, Config) ->
end, end,
ConnectionOpts = [Config, ConnectionOpts = [Config,
{create, true}, {create, true},
{sync, false},
{logging, true}, {logging, true},
{transactional, true}, {transactional, true},
{session_max, SessionMax}, {session_max, SessionMax},
{cache_size, size_cache(Config)}, {cache_size, size_cache(Config)},
{sync, false} {checkpoint, [{wait, 1}]}, % sec
{statistics_log, [{wait, 30}]} % sec
%% {verbose, %% {verbose,
%% ["block", "shared_cache", "ckpt", "evict", %% ["block", "shared_cache", "ckpt", "evict",
%% "evictserver", "fileops", "hazard", "lsm", %% "evictserver", "fileops", "hazard", "lsm",

View file

@ -272,6 +272,7 @@ fold(Cursor, Fun, Acc, {ok, Key, Value}) ->
config_types() -> config_types() ->
[{block_compressor, string}, [{block_compressor, string},
{cache_size, string}, {cache_size, string},
{checkpoint, map},
{create, bool}, {create, bool},
{direct_io, map}, {direct_io, map},
{drop, list}, {drop, list},
@ -293,10 +294,12 @@ config_types() ->
{multiprocess, bool}, {multiprocess, bool},
{name, string}, {name, string},
{session_max, integer}, {session_max, integer},
{statistics_log, map},
{sync, bool}, {sync, bool},
{target, list}, {target, list},
{transactional, bool}, {transactional, bool},
{verbose, map}]. {verbose, map},
{wait, integer}].
config_value(Key, Config, Default) -> config_value(Key, Config, Default) ->
{Key, app_helper:get_prop_or_env(Key, Config, wterl, Default)}. {Key, app_helper:get_prop_or_env(Key, Config, wterl, Default)}.