diff options
author | Filipe David Borba Manana <fdmanana@apache.org> | 2010-11-18 00:11:18 +0000 |
---|---|---|
committer | Filipe David Borba Manana <fdmanana@apache.org> | 2010-11-18 00:11:18 +0000 |
commit | 5e05bcd220251d4b1c4e826156c50efb9e22ee12 (patch) | |
tree | 150e07ab5d3548aa11bb4f538820afaead83f75e /src/couchdb/couch_auth_cache.erl | |
parent | c9b4d1a56a52aef712b7e71c9ea2a727631c1a4e (diff) |
Make sure that after a database compaction the old database reference counters don't get unreleased forever.
Closes COUCHDB-926.
git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@1036294 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'src/couchdb/couch_auth_cache.erl')
-rw-r--r-- | src/couchdb/couch_auth_cache.erl | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/couchdb/couch_auth_cache.erl b/src/couchdb/couch_auth_cache.erl index 0800d1ab..2fbc4f0e 100644 --- a/src/couchdb/couch_auth_cache.erl +++ b/src/couchdb/couch_auth_cache.erl @@ -336,7 +336,7 @@ cache_needs_refresh() -> reopen_auth_db(AuthDb) -> - case (catch gen_server:call(AuthDb#db.main_pid, get_db, infinity)) of + case (catch couch_db:reopen(AuthDb)) of {ok, AuthDb2} -> AuthDb2; _ -> |