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:
parent
816e916658
commit
33b25e6a2b
1 changed files with 2 additions and 3 deletions
|
@ -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),
|
||||
|
|
Loading…
Reference in a new issue