You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@couchdb.apache.org by da...@apache.org on 2017/07/24 20:41:55 UTC
[couchdb] 02/02: FIXUP: Use the shard record definition
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 <pa...@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" <co...@couchdb.apache.org>.