janl commented on code in PR #3038:
URL: https://github.com/apache/couchdb/pull/3038#discussion_r939514871
##########
src/couch/src/couch_db.erl:
##########
@@ -284,26 +295,36 @@ delete_doc(Db, Id, Revisions) ->
open_doc(Db, IdOrDocInfo) ->
open_doc(Db, IdOrDocInfo, []).
-open_doc(Db, Id, Options) ->
+open_doc(Db, Id, Options0) ->
increment_stat(Db, [couchdb, database_reads]),
+ Options = case has_access_enabled(Db) of
+ true -> Options0 ++ [conflicts];
Review Comment:
this is so we can deny access to a doc if the two edit branches disagree on
who should have access, the doc becomes admin-only then.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]