Przeglądaj źródła

{read_concurrency, true}

Feng 10 lat temu
rodzic
commit
fe69fd95c8
1 zmienionych plików z 1 dodań i 1 usunięć
  1. 1 1
      src/emqttd_acl_internal.erl

+ 1 - 1
src/emqttd_acl_internal.erl

@@ -63,7 +63,7 @@ all_rules() ->
 %%------------------------------------------------------------------------------
 -spec init(AclOpts :: list()) -> {ok, State :: any()}.
 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),
     Default = proplists:get_value(nomatch, AclOpts, allow),
     State = #state{acl_file = AclFile, nomatch = Default},