From cd1ddcf1c5d6ce56698fb7c2e2c1f7ec21b38a14 Mon Sep 17 00:00:00 2001 From: Filipe David Borba Manana Date: Tue, 19 Apr 2011 20:10:52 +0000 Subject: 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. git-svn-id: https://svn.apache.org/repos/asf/couchdb/branches/1.1.x@1095190 13f79535-47bb-0310-9956-ffa450edef68 --- src/couchdb/couch_db.erl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/couchdb') diff --git a/src/couchdb/couch_db.erl b/src/couchdb/couch_db.erl index 7475b123..1e7addaf 100644 --- a/src/couchdb/couch_db.erl +++ b/src/couchdb/couch_db.erl @@ -95,7 +95,7 @@ reopen(#db{main_pid = Pid, fd_ref_counter = OldRefCntr, user_ctx = UserCtx}) -> 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}}. -- cgit v1.2.3