Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Add new mmap config option.

  • Loading branch information...
commit cc807a97d6798d984d009b8faa70f4329c01254b 1 parent ea99493
Gregory Burd authored
Showing with 6 additions and 3 deletions.
  1. +5 −3 src/riak_kv_wterl_backend.erl
  2. +1 −0  src/wterl.erl
View
8 src/riak_kv_wterl_backend.erl
@@ -22,6 +22,7 @@
-module(riak_kv_wterl_backend).
-behavior(temp_riak_kv_backend).
+-compile([{parse_transform, lager_transform}]).
%% KV Backend API
-export([api_version/0,
@@ -42,7 +43,7 @@
-ifdef(TEST).
-include_lib("eunit/include/eunit.hrl").
--compiel(export_all).
+-compile(export_all).
-endif.
-define(API_VERSION, 1).
@@ -420,8 +421,9 @@ establish_connection(Config, Type) ->
[ wterl:config_value(create, Config, true),
wterl:config_value(checkpoint_sync, Config, false),
wterl:config_value(transaction_sync, Config, "none"),
- wterl:config_value(log, Config, [{enabled, LogSetting}]),
- wterl:config_value(checkpoint, Config, CheckpointSetting),
+ wterl:config_value(log, Config, [{enabled, LogSetting}]),
+ wterl:config_value(mmap, Config, false),
+ wterl:config_value(checkpoint, Config, CheckpointSetting),
wterl:config_value(session_max, Config, max_sessions(Config)),
wterl:config_value(cache_size, Config, size_cache(RequestedCacheSize)),
wterl:config_value(statistics, Config, [ "fast", "clear"]),
View
1  src/wterl.erl
@@ -485,6 +485,7 @@ config_to_bin([{Key, Value} | Rest], Acc) ->
{leaf_page_max, string},
{log, config},
{lsm, config},
+ {mmap, bool},
{merge_threads, integer},
{multiprocess, bool},
{name, string},
Please sign in to comment.
Something went wrong with that request. Please try again.