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 3E49810AB4 for ; Wed, 12 Feb 2014 23:29:43 +0000 (UTC) Received: (qmail 19848 invoked by uid 500); 12 Feb 2014 23:29:06 -0000 Delivered-To: apmail-couchdb-commits-archive@couchdb.apache.org Received: (qmail 19614 invoked by uid 500); 12 Feb 2014 23:29:00 -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 19499 invoked by uid 99); 12 Feb 2014 23:28:58 -0000 Received: from tyr.zones.apache.org (HELO tyr.zones.apache.org) (140.211.11.114) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 12 Feb 2014 23:28:58 +0000 Received: by tyr.zones.apache.org (Postfix, from userid 65534) id 2A0D289D3FF; Wed, 12 Feb 2014 23:28:57 +0000 (UTC) Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit From: davisp@apache.org To: commits@couchdb.apache.org Date: Wed, 12 Feb 2014 23:29:15 -0000 Message-Id: <0d4256ef7d4a488cac8712bfaf3fe7fe@git.apache.org> In-Reply-To: <03cba45ef52f43d8b911b537d4ab65cf@git.apache.org> References: <03cba45ef52f43d8b911b537d4ab65cf@git.apache.org> X-Mailer: ASF-Git Admin Mailer Subject: [20/25] couch-mrview commit: updated refs/heads/1994-merge-rcouch to 7775266 extract couch_httpd changes API in its own module Project: http://git-wip-us.apache.org/repos/asf/couchdb-couch-mrview/repo Commit: http://git-wip-us.apache.org/repos/asf/couchdb-couch-mrview/commit/01355fd9 Tree: http://git-wip-us.apache.org/repos/asf/couchdb-couch-mrview/tree/01355fd9 Diff: http://git-wip-us.apache.org/repos/asf/couchdb-couch-mrview/diff/01355fd9 Branch: refs/heads/1994-merge-rcouch Commit: 01355fd931c5b800cf3827cba820d79c1611f951 Parents: dcaadec Author: benoitc Authored: Sun Feb 2 19:54:01 2014 +0100 Committer: Paul J. Davis Committed: Wed Feb 12 17:27:40 2014 -0600 ---------------------------------------------------------------------- src/couch_mrview_updater.erl | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/couchdb-couch-mrview/blob/01355fd9/src/couch_mrview_updater.erl ---------------------------------------------------------------------- diff --git a/src/couch_mrview_updater.erl b/src/couch_mrview_updater.erl index a23def6..be1055c 100644 --- a/src/couch_mrview_updater.erl +++ b/src/couch_mrview_updater.erl @@ -182,7 +182,7 @@ map_docs(Parent, State0) -> end. -write_results(Parent, #mrst{db_name=DbName, idx_name=IdxName}=State) -> +write_results(Parent, State) -> case couch_work_queue:dequeue(State#mrst.write_queue) of closed -> Parent ! {new_state, State}; @@ -192,11 +192,6 @@ write_results(Parent, #mrst{db_name=DbName, idx_name=IdxName}=State) -> [], dict:new()), NewState = write_kvs(State, Seq, ViewKVs, DocIdKeys, Log), send_partial(NewState#mrst.partial_resp_pid, NewState), - - % notifify the view update - couch_index_event:notify({index_update, {DbName, IdxName, - couch_mrview_index}}), - write_results(Parent, NewState) end.