couchdb-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From fdman...@apache.org
Subject svn commit: r1095188 - /couchdb/trunk/src/couchdb/couch_db.erl
Date Tue, 19 Apr 2011 20:08:03 GMT
Author: fdmanana
Date: Tue Apr 19 20:08:03 2011
New Revision: 1095188

URL: http://svn.apache.org/viewvc?rev=1095188&view=rev
Log:
Avoid ocassional crash (noproc error on gen_server call)

This happens, for examplem after compacting a database immediately
after one of its view groups is compacted.

Modified:
    couchdb/trunk/src/couchdb/couch_db.erl

Modified: couchdb/trunk/src/couchdb/couch_db.erl
URL: http://svn.apache.org/viewvc/couchdb/trunk/src/couchdb/couch_db.erl?rev=1095188&r1=1095187&r2=1095188&view=diff
==============================================================================
--- couchdb/trunk/src/couchdb/couch_db.erl (original)
+++ couchdb/trunk/src/couchdb/couch_db.erl Tue Apr 19 20:08:03 2011
@@ -95,7 +95,7 @@ reopen(#db{main_pid = Pid, fd_ref_counte
         ok;
     false ->
         couch_ref_counter:add(NewRefCntr),
-        couch_ref_counter:drop(OldRefCntr)
+        catch couch_ref_counter:drop(OldRefCntr)
     end,
     {ok, NewDb#db{user_ctx = UserCtx}}.
 



Mime
View raw message