You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@couchdb.apache.org by ii...@apache.org on 2021/03/16 16:00:20 UTC

[couchdb] 01/07: Revert "fixup: Add format_status/2 callbacks..."

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

iilyak pushed a commit to branch clean-up-logs-3.x.v2
in repository https://gitbox.apache.org/repos/asf/couchdb.git

commit fc6292b14cc3e84938b644057c42567fa54f06a7
Author: ILYA Khlopotov <ii...@apache.org>
AuthorDate: Tue Mar 16 08:43:13 2021 -0700

    Revert "fixup: Add format_status/2 callbacks..."
    
    This reverts commit 80c964e0e393e4d08bbc379c187bcc36d81c7443.
---
 src/couch_replicator/src/couch_replicator_auth_session.erl | 3 +--
 src/ddoc_cache/src/ddoc_cache_opener.erl                   | 4 ++--
 2 files changed, 3 insertions(+), 4 deletions(-)

diff --git a/src/couch_replicator/src/couch_replicator_auth_session.erl b/src/couch_replicator/src/couch_replicator_auth_session.erl
index a376dcd..072550a 100644
--- a/src/couch_replicator/src/couch_replicator_auth_session.erl
+++ b/src/couch_replicator/src/couch_replicator_auth_session.erl
@@ -184,8 +184,7 @@ code_change(_OldVsn, State, _Extra) ->
 
 
 format_status(normal, [_PDict, State]) ->
-    SessionUrl = couch_util:url_strip_password(State#state.session_url),
-    [{data, [{"State", State#state{session_url = SessionUrl}}]}];
+    [{data, [{"State", State}]}];
 
 format_status(terminate, [PDict, State]) ->
     {[
diff --git a/src/ddoc_cache/src/ddoc_cache_opener.erl b/src/ddoc_cache/src/ddoc_cache_opener.erl
index e4b49c2..a9d43b1 100644
--- a/src/ddoc_cache/src/ddoc_cache_opener.erl
+++ b/src/ddoc_cache/src/ddoc_cache_opener.erl
@@ -70,5 +70,5 @@ code_change(_OldVsn, State, _Extra) ->
 format_status(normal, [_PDict, State]) ->
     [{data, [{"State", State}]}];
 
-format_status(terminate, [PDict, State]) ->
-    {State, #{module => ?MODULE, dictionary => PDict}}.
+format_status(terminate, [_PDict, State]) ->
+    {State, #{module => ?MODULE}}.
\ No newline at end of file