From 33b25e6a2bcf2643c3fb5955c18d9087f72d32c5 Mon Sep 17 00:00:00 2001 From: Keith Bostic Date: Thu, 16 Feb 2012 10:54:21 -0500 Subject: [PATCH] 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. --- src/wterl.erl | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/wterl.erl b/src/wterl.erl index 22307c2..612ad58 100644 --- a/src/wterl.erl +++ b/src/wterl.erl @@ -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),