Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

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

ring_size (another guess).
  • Loading branch information...
commit 169a9663b2629dcdd66cf7c3723bb8167bc5fb76 1 parent 7a7350b
Gregory Burd authored
Showing with 5 additions and 1 deletion.
  1. +5 −1 src/riak_kv_wiredtiger_backend.erl
View
6 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
Please sign in to comment.
Something went wrong with that request. Please try again.