diff options
author | Filipe David Borba Manana <fdmanana@apache.org> | 2011-04-19 20:10:52 +0000 |
---|---|---|
committer | Filipe David Borba Manana <fdmanana@apache.org> | 2011-04-19 20:10:52 +0000 |
commit | cd1ddcf1c5d6ce56698fb7c2e2c1f7ec21b38a14 (patch) | |
tree | 074edd0cd2b65770d042d57ca195bb6a84bfd336 /src | |
parent | 8af0b6f622b3f36cabd548c685971c19fd890ec2 (diff) |
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
Diffstat (limited to 'src')
-rw-r--r-- | src/couchdb/couch_db.erl | 2 |
1 files changed, 1 insertions, 1 deletions
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}}. |