janl commented on code in PR #4139:
URL: https://github.com/apache/couchdb/pull/4139#discussion_r939534234
##########
src/couch/src/couch_db.erl:
##########
@@ -293,23 +303,33 @@ 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:
discussion moved here
https://github.com/apache/couchdb/pull/4139#discussion_r939533587
--
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]