diff options
Diffstat (limited to 'src/couchdb')
-rw-r--r-- | src/couchdb/couch_httpd_db.erl | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/couchdb/couch_httpd_db.erl b/src/couchdb/couch_httpd_db.erl index ae58be2b..8bcacfdc 100644 --- a/src/couchdb/couch_httpd_db.erl +++ b/src/couchdb/couch_httpd_db.erl @@ -194,7 +194,7 @@ make_filter_funs(Req, Db) -> FilterSrc = couch_util:get_nested_json_value({Props}, [<<"filters">>, FName]), {ok, Pid} = couch_query_servers:start_filter(Lang, FilterSrc), FilterFun = fun(DInfo = #doc_info{revs=[#rev_info{rev=Rev}|_]}) -> - {ok, Doc} = couch_db:open_doc(Db, DInfo), + {ok, Doc} = couch_db:open_doc(Db, DInfo, [deleted]), {ok, Pass} = couch_query_servers:filter_doc(Pid, Doc, Req, Db), case Pass of true -> |