Return-Path: Delivered-To: apmail-couchdb-commits-archive@www.apache.org Received: (qmail 1410 invoked from network); 16 Mar 2009 22:04:31 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 16 Mar 2009 22:04:31 -0000 Received: (qmail 13234 invoked by uid 500); 16 Mar 2009 22:04:31 -0000 Delivered-To: apmail-couchdb-commits-archive@couchdb.apache.org Received: (qmail 13209 invoked by uid 500); 16 Mar 2009 22:04:31 -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 13200 invoked by uid 99); 16 Mar 2009 22:04:31 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 16 Mar 2009 15:04:31 -0700 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.4] (HELO eris.apache.org) (140.211.11.4) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 16 Mar 2009 22:04:29 +0000 Received: by eris.apache.org (Postfix, from userid 65534) id C26CD2388886; Mon, 16 Mar 2009 22:04:08 +0000 (UTC) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: svn commit: r755016 - /couchdb/trunk/src/couchdb/couch_rep.erl Date: Mon, 16 Mar 2009 22:04:08 -0000 To: commits@couchdb.apache.org From: damien@apache.org X-Mailer: svnmailer-1.0.8 Message-Id: <20090316220408.C26CD2388886@eris.apache.org> X-Virus-Checked: Checked by ClamAV on apache.org Author: damien Date: Mon Mar 16 22:04:08 2009 New Revision: 755016 URL: http://svn.apache.org/viewvc?rev=755016&view=rev Log: Adding the necessary done=true to the last race condition fix in the replicator. Thanks Adam. Modified: couchdb/trunk/src/couchdb/couch_rep.erl Modified: couchdb/trunk/src/couchdb/couch_rep.erl URL: http://svn.apache.org/viewvc/couchdb/trunk/src/couchdb/couch_rep.erl?rev=755016&r1=755015&r2=755016&view=diff ============================================================================== --- couchdb/trunk/src/couchdb/couch_rep.erl (original) +++ couchdb/trunk/src/couchdb/couch_rep.erl Mon Mar 16 22:04:08 2009 @@ -223,7 +223,7 @@ case State#state.listeners of [] -> % still waiting for the first listener to sen a request - {noreply, State#state{current_seq=LastSeq}}; + {noreply, State#state{current_seq=LastSeq,done=true}}; _ -> {stop, normal, ok, State#state{current_seq=LastSeq}} end.