{read_concurrency, true}

This commit is contained in:
Feng 2015-12-07 17:12:45 +08:00
parent 4cde27d724
commit fe69fd95c8
1 changed files with 1 additions and 1 deletions

View File

@ -63,7 +63,7 @@ all_rules() ->
%%------------------------------------------------------------------------------ %%------------------------------------------------------------------------------
-spec init(AclOpts :: list()) -> {ok, State :: any()}. -spec init(AclOpts :: list()) -> {ok, State :: any()}.
init(AclOpts) -> init(AclOpts) ->
ets:new(?ACL_RULE_TAB, [set, public, named_table]), ets:new(?ACL_RULE_TAB, [set, public, named_table, {read_concurrency, true}]),
AclFile = proplists:get_value(file, AclOpts), AclFile = proplists:get_value(file, AclOpts),
Default = proplists:get_value(nomatch, AclOpts, allow), Default = proplists:get_value(nomatch, AclOpts, allow),
State = #state{acl_file = AclFile, nomatch = Default}, State = #state{acl_file = AclFile, nomatch = Default},