diff options
author | Evgeniy Khramtsov <ekhramtsov@process-one.net> | 2017-04-05 15:10:18 +0300 |
---|---|---|
committer | Evgeniy Khramtsov <ekhramtsov@process-one.net> | 2017-04-05 15:10:18 +0300 |
commit | 6fa55e7c384871dbd75958070948c1ca175ce5af (patch) | |
tree | c66dff3618a4a480e3d47285f6871d4427512753 /src/ejabberd_sm.erl | |
parent | Don't misuse monotonic_time/0 (diff) |
Set 'read_concurrency' for some ETS tables
Diffstat (limited to 'src/ejabberd_sm.erl')
-rw-r--r-- | src/ejabberd_sm.erl | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/ejabberd_sm.erl b/src/ejabberd_sm.erl index 1600a2c9..2b6dd2e3 100644 --- a/src/ejabberd_sm.erl +++ b/src/ejabberd_sm.erl @@ -393,7 +393,7 @@ c2s_handle_info(State, _) -> init([]) -> process_flag(trap_exit, true), lists:foreach(fun(Mod) -> Mod:init() end, get_sm_backends()), - ets:new(sm_iqtable, [named_table, public]), + ets:new(sm_iqtable, [named_table, public, {read_concurrency, true}]), ejabberd_hooks:add(host_up, ?MODULE, host_up, 50), ejabberd_hooks:add(host_down, ?MODULE, host_down, 60), lists:foreach(fun host_up/1, ?MYHOSTS), |