Change the cache_size type to a string (it's usually something like 100MB,

not a pure integer).

Remove "exclusive" from the list of options, it's not in the 1.0 release.

Set the cache_size for the test, just to prove it works.
This commit is contained in:
Keith Bostic 2012-02-16 10:54:21 -05:00
parent 816e916658
commit 33b25e6a2b

View file

@ -101,12 +101,11 @@ cursor_close(_Cursor) ->
%% Configuration type information.
%%
config_types() ->
[{cache_size, integer},
[{cache_size, string},
{create, bool},
{error_prefix, string},
{eviction_target, integer},
{eviction_trigger, integer},
{exclusive, false},
{extensions, string},
{hazard_max, integer},
{home_environment, bool},
@ -160,7 +159,7 @@ config_to_bin([{Key, Value} | Rest], Acc) ->
-ifdef(TEST).
basic_test() ->
Opts = [{create, true}],
Opts = [{create, true}, {cache_size, "100MB"}],
ok = filelib:ensure_dir(filename:join("/tmp/wterl.basic", "foo")),
{ok, ConnRef} = conn_open("/tmp/wterl.basic", config_to_bin(Opts, [])),
{ok, SRef} = session_new(ConnRef),