couchdb-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dav...@apache.org
Subject [27/49] git commit: COUCHDB-1444 Fix missing_named_view
Date Fri, 17 Jan 2014 22:10:12 GMT
COUCHDB-1444 Fix missing_named_view

Instead of replacing 'EXIT' signals we can just stuff the process that
exited into the exit reason and match on that.


Project: http://git-wip-us.apache.org/repos/asf/couchdb-couch-mrview/repo
Commit: http://git-wip-us.apache.org/repos/asf/couchdb-couch-mrview/commit/311138f0
Tree: http://git-wip-us.apache.org/repos/asf/couchdb-couch-mrview/tree/311138f0
Diff: http://git-wip-us.apache.org/repos/asf/couchdb-couch-mrview/diff/311138f0

Branch: refs/heads/import
Commit: 311138f08109ff78221ca26815ef2d6eb2025c29
Parents: 6f586c0
Author: Paul Joseph Davis <davisp@apache.org>
Authored: Wed Aug 15 14:50:18 2012 -0500
Committer: Paul Joseph Davis <davisp@apache.org>
Committed: Wed Aug 15 15:07:28 2012 -0500

----------------------------------------------------------------------
 src/couch_mrview_compactor.erl | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/couchdb-couch-mrview/blob/311138f0/src/couch_mrview_compactor.erl
----------------------------------------------------------------------
diff --git a/src/couch_mrview_compactor.erl b/src/couch_mrview_compactor.erl
index cf3cf22..b500ce3 100644
--- a/src/couch_mrview_compactor.erl
+++ b/src/couch_mrview_compactor.erl
@@ -116,11 +116,11 @@ compact(State) ->
 
 recompact(State) ->
     link(State#mrst.fd),
-    {_Pid, Ref} = erlang:spawn_monitor(fun() ->
+    {Pid, Ref} = erlang:spawn_monitor(fun() ->
         couch_index_updater:update(couch_mrview_index, State)
     end),
     receive
-        {'DOWN', Ref, _, _, {updated, State2}} ->
+        {'DOWN', Ref, _, _, {updated, Pid, State2}} ->
             unlink(State#mrst.fd),
             {ok, State2}
     end.


Mime
View raw message