Merge pull request #4324 from felixhuettner/fhcs_write_concurrency

Enable write_concurrency for file handle cache stats
This commit is contained in:
Michael Klishin 2022-03-22 12:20:08 +04:00 committed by GitHub
commit c5c730c371
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -21,7 +21,7 @@
-define(COUNT_TIME_BYTES, [io_read, io_write]).
init() ->
_ = ets:new(?TABLE, [public, named_table]),
_ = ets:new(?TABLE, [public, named_table, {write_concurrency,true}]),
[ets:insert(?TABLE, {{Op, Counter}, 0}) || Op <- ?COUNT_TIME_BYTES,
Counter <- [count, bytes, time]],
[ets:insert(?TABLE, {{Op, Counter}, 0}) || Op <- ?COUNT_TIME,