summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJan Lehnardt <jan@apache.org>2022-08-06 12:54:23 +0200
committerJan Lehnardt <jan@apache.org>2022-12-16 16:56:18 +0100
commit2084d516072319ed10f8d1af832fdd53f7b5902d (patch)
tree3fa91e3c14836e1e81a88e4046c5a48139ef17a1
parente1746c5a315b88e4715062feb7ec9610f2d3e762 (diff)
downloadcouchdb-2084d516072319ed10f8d1af832fdd53f7b5902d.tar.gz
chore(access): remove old comment
-rw-r--r--src/couch/src/couch_db_updater.erl5
1 files changed, 0 insertions, 5 deletions
diff --git a/src/couch/src/couch_db_updater.erl b/src/couch/src/couch_db_updater.erl
index 6067d18b4..392f34b77 100644
--- a/src/couch/src/couch_db_updater.erl
+++ b/src/couch/src/couch_db_updater.erl
@@ -791,11 +791,6 @@ update_docs_int(Db, DocsList, LocalDocs, MergeConflicts, UserCtx) ->
% at this point, we already validated this Db is access enabled, so do the checks right away.
check_access(Db, UserCtx, Access) -> couch_db:check_access(Db#db{user_ctx=UserCtx}, Access).
-% TODO: looks like we go into validation here unconditionally and only check in
-% check_access() whether the Db has_access_enabled(), we should do this
-% here on the outside. Might be our perf issue.
-% However, if it is, that means we have to speed this up as it would still
-% be too slow for when access is enabled.
validate_docs_access(Db, UserCtx, DocsList, OldDocInfos) ->
case couch_db:has_access_enabled(Db) of
true -> validate_docs_access_int(Db, UserCtx, DocsList, OldDocInfos);