You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@couchdb.apache.org by fd...@apache.org on 2011/04/19 22:10:10 UTC

svn commit: r1095189 - /couchdb/branches/1.0.x/src/couchdb/couch_db.erl

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}}.