couchdb-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From fdman...@apache.org
Subject svn commit: r1095189 - /couchdb/branches/1.0.x/src/couchdb/couch_db.erl
Date Tue, 19 Apr 2011 20:10:10 GMT
Author: fdmanana
Date: Tue Apr 19 20:10:10 2011
New Revision: 1095189

URL: http://svn.apache.org/viewvc?rev=1095189&view=rev
Log:
Merged revision 1095188 from trunk:

    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/branches/1.0.x/src/couchdb/couch_db.erl

Modified: couchdb/branches/1.0.x/src/couchdb/couch_db.erl
URL: http://svn.apache.org/viewvc/couchdb/branches/1.0.x/src/couchdb/couch_db.erl?rev=1095189&r1=1095188&r2=1095189&view=diff
==============================================================================
--- couchdb/branches/1.0.x/src/couchdb/couch_db.erl (original)
+++ couchdb/branches/1.0.x/src/couchdb/couch_db.erl Tue Apr 19 20:10:10 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