Repository: couchdb-config Updated Branches: refs/heads/enable-read-concurrency [created] 4f7d91bf4
Enable read_concurrency for config ets table Project: http://git-wip-us.apache.org/repos/asf/couchdb-config/repo Commit: http://git-wip-us.apache.org/repos/asf/couchdb-config/commit/4f7d91bf Tree: http://git-wip-us.apache.org/repos/asf/couchdb-config/tree/4f7d91bf Diff: http://git-wip-us.apache.org/repos/asf/couchdb-config/diff/4f7d91bf Branch: refs/heads/enable-read-concurrency Commit: 4f7d91bf439f9bfbe985e69473ff1854b7e465a1 Parents: a2d5ad2 Author: Russell Branca <[email protected]> Authored: Thu Apr 28 23:22:19 2016 +0000 Committer: Russell Branca <[email protected]> Committed: Thu Apr 28 23:22:19 2016 +0000 ---------------------------------------------------------------------- src/config.erl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/couchdb-config/blob/4f7d91bf/src/config.erl ---------------------------------------------------------------------- diff --git a/src/config.erl b/src/config.erl index 2156a7b..5c9ac6f 100644 --- a/src/config.erl +++ b/src/config.erl @@ -186,7 +186,7 @@ listen_for_changes(CallbackModule, InitialState) -> gen_server:call(?MODULE, {listen_for_changes, CallbackModule, InitialState}). init(IniFiles) -> - ets:new(?MODULE, [named_table, set, protected]), + ets:new(?MODULE, [named_table, set, protected, {read_concurrency, true}]), lists:map(fun(IniFile) -> {ok, ParsedIniValues} = parse_ini_file(IniFile), ets:insert(?MODULE, ParsedIniValues)
