couchdb-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dav...@apache.org
Subject [couchdb] 02/02: FIXUP: Use the shard record definition
Date Mon, 24 Jul 2017 20:41:55 GMT
This is an automated email from the ASF dual-hosted git repository.

davisp pushed a commit to branch optimize-ddoc-cache
in repository https://gitbox.apache.org/repos/asf/couchdb.git

commit d354951d11fc0cb9a1ee5b8b63845af7a937e525
Author: Paul J. Davis <paul.joseph.davis@gmail.com>
AuthorDate: Mon Jul 24 15:41:26 2017 -0500

    FIXUP: Use the shard record definition
---
 src/ddoc_cache/test/ddoc_cache_eviction_test.erl | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/src/ddoc_cache/test/ddoc_cache_eviction_test.erl b/src/ddoc_cache/test/ddoc_cache_eviction_test.erl
index 30b4fb7..5a02a5c 100644
--- a/src/ddoc_cache/test/ddoc_cache_eviction_test.erl
+++ b/src/ddoc_cache/test/ddoc_cache_eviction_test.erl
@@ -20,6 +20,7 @@
 
 -include_lib("couch/include/couch_db.hrl").
 -include_lib("eunit/include/eunit.hrl").
+-include_lib("mem3/include/mem3.hrl").
 -include("ddoc_cache_test.hrl").
 
 
@@ -55,7 +56,7 @@ evict_all({DbName, _}) ->
     ddoc_cache_tutil:clear(),
     meck:reset(ddoc_cache_ev),
     Rev = ddoc_cache_tutil:get_rev(DbName, ?FOOBAR),
-    ShardName = element(2, hd(mem3:shards(DbName))),
+    #shard{name = ShardName} = hd(mem3:shards(DbName)),
     {ok, _} = ddoc_cache:open_doc(DbName, ?FOOBAR),
     {ok, _} = ddoc_cache:open_doc(DbName, ?FOOBAR, Rev),
     {ok, _} = ddoc_cache:open_validation_funs(DbName),

-- 
To stop receiving notification emails like this one, please contact
"commits@couchdb.apache.org" <commits@couchdb.apache.org>.

Mime
View raw message