Permalink
Browse files

Set a lower bound for session_max to 1024 (which is a guess) or 2x

ring_size (another guess).
  • Loading branch information...
1 parent 7a7350b commit 169a9663b2629dcdd66cf7c3723bb8167bc5fb76 Gregory Burd committed Mar 12, 2013
Showing with 5 additions and 1 deletion.
  1. +5 −1 src/riak_kv_wiredtiger_backend.erl
@@ -103,7 +103,11 @@ start(Partition, Config) ->
SessionMax =
case app_helper:get_env(riak_core, ring_creation_size) of
undefined -> 1024;
- RingSize -> RingSize
+ RingSize ->
+ case RingSize < 512 of
+ true -> 1024;
+ false -> RingSize * 2
+ end
end,
WTConfig =
case proplists:lookup(wt, Config) of

0 comments on commit 169a966

Please sign in to comment.