aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAnders Svensson <[email protected]>2015-07-22 00:31:53 +0200
committerAnders Svensson <[email protected]>2015-08-04 10:00:26 +0200
commite6e64a36fbc26e30b97df3bc1105eceef104f318 (patch)
tree4e8feed00523f7ffff9f5062176ca15d8c921117
parent4f365c072b6df771004b388dd7e66f08e37ac5e7 (diff)
downloadotp-e6e64a36fbc26e30b97df3bc1105eceef104f318.tar.gz
otp-e6e64a36fbc26e30b97df3bc1105eceef104f318.tar.bz2
otp-e6e64a36fbc26e30b97df3bc1105eceef104f318.zip
Set ets {write_concurrency, true} on diameter_stats
lcnt:inspect/1 recently showed this: lock id #tries collisions [%] time [us] ----- --- ------- --------------- ---------- db_tab diameter_stats 932920 92.9326 330332554
-rw-r--r--lib/diameter/src/base/diameter_stats.erl5
1 files changed, 4 insertions, 1 deletions
diff --git a/lib/diameter/src/base/diameter_stats.erl b/lib/diameter/src/base/diameter_stats.erl
index 64ea082be0..d2c760317a 100644
--- a/lib/diameter/src/base/diameter_stats.erl
+++ b/lib/diameter/src/base/diameter_stats.erl
@@ -220,7 +220,10 @@ uptime() ->
%% ----------------------------------------------------------
init([]) ->
- ets:new(?TABLE, [named_table, ordered_set, public]),
+ ets:new(?TABLE, [named_table,
+ ordered_set,
+ public,
+ {write_concurrency, true}]),
{ok, #state{}}.
%% ----------------------------------------------------------