couchdb-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From e...@apache.org
Subject [1/2] chttpd commit: updated refs/heads/master to c1f035f
Date Fri, 11 Nov 2016 23:14:16 GMT
Repository: couchdb-chttpd
Updated Branches:
  refs/heads/master 3dcdb6a2e -> c1f035f1b


Include user_ctx in db open options


Project: http://git-wip-us.apache.org/repos/asf/couchdb-chttpd/repo
Commit: http://git-wip-us.apache.org/repos/asf/couchdb-chttpd/commit/32fc26b7
Tree: http://git-wip-us.apache.org/repos/asf/couchdb-chttpd/tree/32fc26b7
Diff: http://git-wip-us.apache.org/repos/asf/couchdb-chttpd/diff/32fc26b7

Branch: refs/heads/master
Commit: 32fc26b797d4eaff8bc4960cf6a8caef0620fa17
Parents: 3dcdb6a
Author: Eric Avdey <eiri@eiri.ca>
Authored: Fri Nov 11 10:56:23 2016 -0400
Committer: Eric Avdey <eiri@eiri.ca>
Committed: Fri Nov 11 13:50:16 2016 -0400

----------------------------------------------------------------------
 src/chttpd_db.erl | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/couchdb-chttpd/blob/32fc26b7/src/chttpd_db.erl
----------------------------------------------------------------------
diff --git a/src/chttpd_db.erl b/src/chttpd_db.erl
index 09a1680..a361f00 100644
--- a/src/chttpd_db.erl
+++ b/src/chttpd_db.erl
@@ -83,7 +83,8 @@ handle_changes_req(#httpd{path_parts=[_,<<"_changes">>]}=Req,
_Db) ->
 handle_changes_req1(#httpd{}=Req, Db) ->
     #changes_args{filter=Raw, style=Style} = Args0 = parse_changes_query(Req),
     ChangesArgs = Args0#changes_args{
-        filter_fun = couch_changes:configure_filter(Raw, Style, Req, Db)
+        filter_fun = couch_changes:configure_filter(Raw, Style, Req, Db),
+        db_open_options = [{user_ctx, Db#db.user_ctx}]
     },
     Max = chttpd:chunked_response_buffer_size(),
     case ChangesArgs#changes_args.feed of


Mime
View raw message