From d475be6b00e0b57d704c4cf36e657a3dbe8c3c78 Mon Sep 17 00:00:00 2001 From: "Damien F. Katz" Date: Mon, 16 Mar 2009 22:04:08 +0000 Subject: Adding the necessary done=true to the last race condition fix in the replicator. Thanks Adam. git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@755016 13f79535-47bb-0310-9956-ffa450edef68 --- src/couchdb/couch_rep.erl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/couchdb/couch_rep.erl b/src/couchdb/couch_rep.erl index 02b5c58d..5a27636f 100644 --- a/src/couchdb/couch_rep.erl +++ b/src/couchdb/couch_rep.erl @@ -223,7 +223,7 @@ handle_call({fin, {LastSeq, RevsCount}}, {Pid,_}, #state{enum_pid=Pid} = State) 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. -- cgit v1.2.3