diff options
author | Anders Svensson <[email protected]> | 2015-07-22 00:31:53 +0200 |
---|---|---|
committer | Anders Svensson <[email protected]> | 2015-08-04 10:00:26 +0200 |
commit | e6e64a36fbc26e30b97df3bc1105eceef104f318 (patch) | |
tree | 4e8feed00523f7ffff9f5062176ca15d8c921117 /lib/diameter/src/base/diameter_stats.erl | |
parent | 4f365c072b6df771004b388dd7e66f08e37ac5e7 (diff) | |
download | otp-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
Diffstat (limited to 'lib/diameter/src/base/diameter_stats.erl')
-rw-r--r-- | lib/diameter/src/base/diameter_stats.erl | 5 |
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{}}. %% ---------------------------------------------------------- |