Skip to content

Commit

Permalink
Fix checkpoint config.
Browse files Browse the repository at this point in the history
  • Loading branch information
Gregory Burd committed Nov 20, 2013
1 parent 3302ab2 commit 08b2d18
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/riak_kv_wterl_backend.erl
Expand Up @@ -405,12 +405,12 @@ establish_connection(Config, Type) ->
case LogSetting of
true ->
%% Turn checkpoints on if logging is on, checkpoints enable log archival.
app_helper:get_prop_or_env(checkpoint, Config, wterl, {wait, 30}); % in seconds
app_helper:get_prop_or_env(checkpoint, Config, wterl, [{wait, 30}]); % in seconds
_ ->
[]
end;
false ->
app_helper:get_prop_or_env(checkpoint, Config, wterl, {wait, 30})
app_helper:get_prop_or_env(checkpoint, Config, wterl, [{wait, 30}])
end,
RequestedCacheSize = app_helper:get_prop_or_env(cache_size, Config, wterl),
ConnectionOpts =
Expand All @@ -419,7 +419,7 @@ establish_connection(Config, Type) ->
wterl:config_value(checkpoint_sync, Config, false),
wterl:config_value(transaction_sync, Config, "none"),
wterl:config_value(log, Config, [{enabled, LogSetting}]),
wterl:config_value(checkpoint, Config, [CheckpointSetting]),
wterl:config_value(checkpoint, Config, CheckpointSetting),
wterl:config_value(session_max, Config, max_sessions(Config)),
wterl:config_value(cache_size, Config, size_cache(RequestedCacheSize)),
wterl:config_value(statistics_log, Config, [{wait, 600}]), % in seconds
Expand Down

0 comments on commit 08b2d18

Please sign in to comment.