Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id 4384C200CCF for ; Mon, 24 Jul 2017 22:41:58 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id 42546165B8D; Mon, 24 Jul 2017 20:41:58 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id 91C7E165B89 for ; Mon, 24 Jul 2017 22:41:57 +0200 (CEST) Received: (qmail 73595 invoked by uid 500); 24 Jul 2017 20:41:56 -0000 Mailing-List: contact commits-help@couchdb.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@couchdb.apache.org Delivered-To: mailing list commits@couchdb.apache.org Received: (qmail 73578 invoked by uid 99); 24 Jul 2017 20:41:56 -0000 Received: from ec2-52-202-80-70.compute-1.amazonaws.com (HELO gitbox.apache.org) (52.202.80.70) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 24 Jul 2017 20:41:56 +0000 Received: by gitbox.apache.org (ASF Mail Server at gitbox.apache.org, from userid 33) id 6AA19811CA; Mon, 24 Jul 2017 20:41:53 +0000 (UTC) Date: Mon, 24 Jul 2017 20:41:55 +0000 To: "commits@couchdb.apache.org" Subject: [couchdb] 02/02: FIXUP: Use the shard record definition MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit From: davisp@apache.org Reply-To: "commits@couchdb.apache.org" In-Reply-To: <150092891310.17056.12613403332324387673@gitbox.apache.org> References: <150092891310.17056.12613403332324387673@gitbox.apache.org> X-Git-Host: gitbox.apache.org X-Git-Repo: couchdb X-Git-Refname: refs/heads/optimize-ddoc-cache X-Git-Reftype: branch X-Git-Rev: d354951d11fc0cb9a1ee5b8b63845af7a937e525 X-Git-NotificationType: diff X-Git-Multimail-Version: 1.5.dev Auto-Submitted: auto-generated Message-Id: <20170724204154.6AA19811CA@gitbox.apache.org> archived-at: Mon, 24 Jul 2017 20:41:58 -0000 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 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" .