summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorFilipe David Borba Manana <fdmanana@apache.org>2010-07-14 17:49:39 +0000
committerFilipe David Borba Manana <fdmanana@apache.org>2010-07-14 17:49:39 +0000
commit0dfa5afb632d06cfeb98853aa2c41f4aa763546a (patch)
treec364e0a10661edd0d6fb1550a19f94ace6be9a09 /src
parentd44a6346ecd5869c626452df9eb22711c32f119e (diff)
Bug fix: badmatch error after deleting a user doc (uncovered by revision 963723).
git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@964108 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'src')
-rw-r--r--src/couchdb/couch_auth_cache.erl2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/couchdb/couch_auth_cache.erl b/src/couchdb/couch_auth_cache.erl
index bff801fa..078bfcc1 100644
--- a/src/couchdb/couch_auth_cache.erl
+++ b/src/couchdb/couch_auth_cache.erl
@@ -289,7 +289,7 @@ refresh_entry(Db, #doc_info{high_seq = DocSeq} = DocInfo) ->
[] ->
ok;
[{UserName, {_OldCreds, ATime}}] ->
- {ok, Doc} = couch_db:open_doc(Db, DocInfo, [conflicts]),
+ {ok, Doc} = couch_db:open_doc(Db, DocInfo, [conflicts, deleted]),
NewCreds = user_creds(Doc),
true = ets:insert(?BY_USER, {UserName, {NewCreds, ATime}})
end;