couchdb-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From j..@apache.org
Subject svn commit: r954460 - /couchdb/branches/0.11.x/src/couchdb/couch_view.erl
Date Mon, 14 Jun 2010 13:38:51 GMT
Author: jan
Date: Mon Jun 14 13:38:51 2010
New Revision: 954460

URL: http://svn.apache.org/viewvc?rev=954460&view=rev
Log:
Fix hang with view shutdown.

Modified:
    couchdb/branches/0.11.x/src/couchdb/couch_view.erl

Modified: couchdb/branches/0.11.x/src/couchdb/couch_view.erl
URL: http://svn.apache.org/viewvc/couchdb/branches/0.11.x/src/couchdb/couch_view.erl?rev=954460&r1=954459&r2=954460&view=diff
==============================================================================
--- couchdb/branches/0.11.x/src/couchdb/couch_view.erl (original)
+++ couchdb/branches/0.11.x/src/couchdb/couch_view.erl Mon Jun 14 13:38:51 2010
@@ -312,7 +312,8 @@ do_reset_indexes(DbName, Root) ->
         fun({_DbName, Sig}) ->
             ?LOG_DEBUG("Killing update process for view group ~s. in database ~s.", [Sig,
DbName]),
             [{_, Pid}] = ets:lookup(group_servers_by_sig, {DbName, Sig}),
-            couch_util:shutdown_sync(Pid)
+            couch_util:shutdown_sync(Pid),
+            delete_from_ets(Pid, DbName, Sig)
         end, Names),
     delete_index_dir(Root, DbName),
     file:delete(Root ++ "/." ++ ?b2l(DbName) ++ "_temp").



Mime
View raw message