diff options
author | Damien F. Katz <damien@apache.org> | 2009-04-10 02:21:37 +0000 |
---|---|---|
committer | Damien F. Katz <damien@apache.org> | 2009-04-10 02:21:37 +0000 |
commit | 1df631f8653fefdda8d852b39f4ca9aec46f69da (patch) | |
tree | b689897a497fed4599a68d96322023a4782573a2 /src/couchdb/couch_db.erl | |
parent | 7db96420155d3fe6b6d8b5eaa10660a65d19b8cc (diff) |
Fixes for leaked file handles, with test.
git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@763858 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'src/couchdb/couch_db.erl')
-rw-r--r-- | src/couchdb/couch_db.erl | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/couchdb/couch_db.erl b/src/couchdb/couch_db.erl index 18cb98ee..e7df2f25 100644 --- a/src/couchdb/couch_db.erl +++ b/src/couchdb/couch_db.erl @@ -677,7 +677,8 @@ init({DbName, Filepath, Fd, Options}) -> couch_ref_counter:add(RefCntr), {ok, Db}. -terminate(_Reason, _Db) -> +terminate(Reason, _Db) -> + couch_util:terminate_linked(Reason), ok. handle_call({open_ref_count, OpenerPid}, _, #db{fd_ref_counter=RefCntr}=Db) -> |