You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@couchdb.apache.org by va...@apache.org on 2019/08/22 20:19:36 UTC

[couchdb] branch prototype/fdb-layer-fix-couch-views-admin-open created (now ed9f6e9)

This is an automated email from the ASF dual-hosted git repository.

vatamane pushed a change to branch prototype/fdb-layer-fix-couch-views-admin-open
in repository https://gitbox.apache.org/repos/asf/couchdb.git.


      at ed9f6e9  Open dbs with admin privileges in couch_views_indexer

This branch includes the following new commits:

     new ed9f6e9  Open dbs with admin privileges in couch_views_indexer

The 1 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails.  The revisions
listed as "add" were already present in the repository and have only
been added to this reference.



[couchdb] 01/01: Open dbs with admin privileges in couch_views_indexer

Posted by va...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

vatamane pushed a commit to branch prototype/fdb-layer-fix-couch-views-admin-open
in repository https://gitbox.apache.org/repos/asf/couchdb.git

commit ed9f6e9ea2587c3528f63aa8cc6813f59c1f498a
Author: Nick Vatamaniuc <va...@apache.org>
AuthorDate: Thu Aug 22 16:15:04 2019 -0400

    Open dbs with admin privileges in couch_views_indexer
    
    That is needed when indexing authentication dbs like `_users`.
---
 src/couch_views/src/couch_views_indexer.erl | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/couch_views/src/couch_views_indexer.erl b/src/couch_views/src/couch_views_indexer.erl
index bebbd1a..60c8194 100644
--- a/src/couch_views/src/couch_views_indexer.erl
+++ b/src/couch_views/src/couch_views_indexer.erl
@@ -42,7 +42,7 @@ init() ->
         <<"sig">> := JobSig
     } = Data,
 
-    {ok, Db} = fabric2_db:open(DbName, []),
+    {ok, Db} = fabric2_db:open(DbName, [?ADMIN_CTX]),
     {ok, DDoc} = fabric2_db:open_doc(Db, DDocId),
     {ok, Mrst} = couch_views_util:ddoc_to_mrst(DbName, DDoc),
     HexSig = fabric2_util:to_hex(Mrst#mrst.sig),