diff options
author | Damien F. Katz <damien@apache.org> | 2009-03-16 22:04:08 +0000 |
---|---|---|
committer | Damien F. Katz <damien@apache.org> | 2009-03-16 22:04:08 +0000 |
commit | d475be6b00e0b57d704c4cf36e657a3dbe8c3c78 (patch) | |
tree | b673f3f9696a0ccb5492793435846e3deecbeefa /src/couchdb | |
parent | 1d0823556e3dd1e344b0e65743067aafa0899a65 (diff) |
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
Diffstat (limited to 'src/couchdb')
-rw-r--r-- | src/couchdb/couch_rep.erl | 2 |
1 files changed, 1 insertions, 1 deletions
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. |