You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@couchdb.apache.org by ja...@apache.org on 2023/07/08 13:29:48 UTC
[couchdb] 03/03: chore: revert debug code
This is an automated email from the ASF dual-hosted git repository.
jan pushed a commit to branch rebase/access-2023
in repository https://gitbox.apache.org/repos/asf/couchdb.git
commit 3dcd5237a43123ce5adaaf69f485263ceab348b4
Author: Jan Lehnardt <ja...@apache.org>
AuthorDate: Sat Jul 8 15:29:36 2023 +0200
chore: revert debug code
---
src/couch_index/src/couch_index_util.erl | 5 +----
1 file changed, 1 insertion(+), 4 deletions(-)
diff --git a/src/couch_index/src/couch_index_util.erl b/src/couch_index/src/couch_index_util.erl
index beb0f5569..bb9d02778 100644
--- a/src/couch_index/src/couch_index_util.erl
+++ b/src/couch_index/src/couch_index_util.erl
@@ -31,10 +31,7 @@ index_file(Module, DbName, FileName) ->
load_doc(Db, #doc_info{} = DI, Opts) ->
Deleted = lists:member(deleted, Opts),
- % MyDoc = ,
- %{ok, MyDoc2} = MyDoc,
- %couch_log:error("~ncouch_index_util:load_doc(): Doc: ~p, Deleted ~p~n", [MyDoc2, MyDoc2#doc.deleted]),
- case catch (couch_db:open_doc(Db, DI, Opts)) of
+ case (catch (couch_db:open_doc(Db, DI, Opts))) of
{ok, #doc{deleted = false} = Doc} -> Doc;
{ok, #doc{deleted = true} = Doc} when Deleted -> Doc;
_Else -> null