couchdb-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From kocol...@apache.org
Subject svn commit: r888267 - /couchdb/trunk/src/couchdb/couch_rep.erl
Date Tue, 08 Dec 2009 05:16:56 GMT
Author: kocolosk
Date: Tue Dec  8 05:16:55 2009
New Revision: 888267

URL: http://svn.apache.org/viewvc?rev=888267&view=rev
Log:
release old Fds on replication reboot, shut down child procs in a cleaner order

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=888267&r1=888266&r2=888267&view=diff
==============================================================================
--- couchdb/trunk/src/couchdb/couch_rep.erl (original)
+++ couchdb/trunk/src/couchdb/couch_rep.erl Tue Dec  8 05:16:55 2009
@@ -553,9 +553,11 @@
             reader = Reader,
             writer = Writer
         } = State,
-        Pids = [CF, MR, Reader, Writer],
+        Pids = [Writer, Reader, MR, CF],
         [unlink(Pid) || Pid <- Pids],
         [exit(Pid, shutdown) || Pid <- Pids],
+        close_db(Target),
+        close_db(Source),
         {ok, NewState} = init(State#state.init_args),
         NewState
     end.



Mime
View raw message