You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@couchdb.apache.org by ja...@apache.org on 2020/01/29 03:07:20 UTC

[couchdb] branch expiring-cache-cleanup created (now b6c8a21)

This is an automated email from the ASF dual-hosted git repository.

jaydoane pushed a change to branch expiring-cache-cleanup
in repository https://gitbox.apache.org/repos/asf/couchdb.git.


      at b6c8a21  Delete unused ets table creation

This branch includes the following new commits:

     new b6c8a21  Delete unused ets table creation

The 1 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails.  The revisions
listed as "add" were already present in the repository and have only
been added to this reference.



[couchdb] 01/01: Delete unused ets table creation

Posted by ja...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

jaydoane pushed a commit to branch expiring-cache-cleanup
in repository https://gitbox.apache.org/repos/asf/couchdb.git

commit b6c8a213d761e2149c22739089250e91cab4ad47
Author: Jay Doane <ja...@apache.org>
AuthorDate: Tue Jan 28 19:06:07 2020 -0800

    Delete unused ets table creation
    
    This ets table was a holdover from when couch_expiring_cache was a non-
    library OTP application. It is unused, and would prevent multiple users
    of the library in the same project.
---
 src/couch_expiring_cache/src/couch_expiring_cache_server.erl | 1 -
 1 file changed, 1 deletion(-)

diff --git a/src/couch_expiring_cache/src/couch_expiring_cache_server.erl b/src/couch_expiring_cache/src/couch_expiring_cache_server.erl
index 6f9dc1f..65e742b 100644
--- a/src/couch_expiring_cache/src/couch_expiring_cache_server.erl
+++ b/src/couch_expiring_cache/src/couch_expiring_cache_server.erl
@@ -43,7 +43,6 @@ start_link(Name, Opts) when is_atom(Name) ->
 
 
 init(Opts) ->
-    ?MODULE = ets:new(?MODULE, [named_table, public, {read_concurrency, true}]),
     DefaultCacheName = atom_to_binary(maps:get(name, Opts), utf8),
     Period = maps:get(period, Opts, ?DEFAULT_PERIOD_MSEC),
     MaxJitter = maps:get(max_jitter, Opts, ?DEFAULT_MAX_JITTER_MSEC),