Return-Path: X-Original-To: apmail-couchdb-commits-archive@www.apache.org Delivered-To: apmail-couchdb-commits-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id AE1B511C41 for ; Thu, 28 Aug 2014 12:22:22 +0000 (UTC) Received: (qmail 40739 invoked by uid 500); 28 Aug 2014 12:22:22 -0000 Delivered-To: apmail-couchdb-commits-archive@couchdb.apache.org Received: (qmail 40601 invoked by uid 500); 28 Aug 2014 12:22:22 -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 40406 invoked by uid 99); 28 Aug 2014 12:22:22 -0000 Received: from tyr.zones.apache.org (HELO tyr.zones.apache.org) (140.211.11.114) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 28 Aug 2014 12:22:22 +0000 Received: by tyr.zones.apache.org (Postfix, from userid 65534) id C011FA02DAD; Thu, 28 Aug 2014 12:22:21 +0000 (UTC) Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit From: rnewson@apache.org To: commits@couchdb.apache.org Date: Thu, 28 Aug 2014 12:22:28 -0000 Message-Id: In-Reply-To: <29bb38a445e2454d9b33ebc655e7f389@git.apache.org> References: <29bb38a445e2454d9b33ebc655e7f389@git.apache.org> X-Mailer: ASF-Git Admin Mailer Subject: [08/50] mem3 commit: updated refs/heads/master to 64c0c74 Zero out shard caches on upgrade The mix of #shard and #ordered_shard records breaks ushards. Different nodes can start returning different results. Project: http://git-wip-us.apache.org/repos/asf/couchdb-mem3/repo Commit: http://git-wip-us.apache.org/repos/asf/couchdb-mem3/commit/5aa38c6f Tree: http://git-wip-us.apache.org/repos/asf/couchdb-mem3/tree/5aa38c6f Diff: http://git-wip-us.apache.org/repos/asf/couchdb-mem3/diff/5aa38c6f Branch: refs/heads/master Commit: 5aa38c6f15eb08b98b53c00e398b2f486a825cd6 Parents: d2171e9 Author: Adam Kocoloski Authored: Fri Jun 21 00:14:42 2013 -0400 Committer: Robert Newson Committed: Wed Jul 23 18:46:25 2014 +0100 ---------------------------------------------------------------------- src/mem3_shards.erl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/couchdb-mem3/blob/5aa38c6f/src/mem3_shards.erl ---------------------------------------------------------------------- diff --git a/src/mem3_shards.erl b/src/mem3_shards.erl index 6127ff6..2d21db2 100644 --- a/src/mem3_shards.erl +++ b/src/mem3_shards.erl @@ -193,7 +193,7 @@ terminate(_Reason, #st{changes_pid=Pid}) -> ok. code_change(_OldVsn, St, _Extra) -> - {ok, St}. + {ok, cache_clear(St)}. %% internal functions