chore(ft): add read/write concurrency to emqx_ft_async_reply tabs

This commit is contained in:
Ilya Averyanov 2023-08-28 22:45:05 +03:00
parent 4488e9e591
commit 279895b8fd
1 changed files with 9 additions and 2 deletions

View File

@ -55,8 +55,15 @@
-spec create_tables() -> ok.
create_tables() ->
_ = ets:new(?MON_TAB, [named_table, public, ordered_set]),
_ = ets:new(?PACKET_TAB, [named_table, public, ordered_set]),
EtsOptions = [
named_table,
public,
ordered_set,
{read_concurrency, true},
{write_concurrency, true}
],
_ = ets:new(?MON_TAB, EtsOptions),
_ = ets:new(?PACKET_TAB, EtsOptions),
ok.
-spec register(packet_id(), mon_ref(), timer_ref()) -> ok.