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

rnewson pushed a commit to branch remove-md5-more
in repository https://gitbox.apache.org/repos/asf/couchdb.git

commit 90ca838cd3f3e2f03b2ee4d433d700a1459b0a84
Author: Robert Newson <[email protected]>
AuthorDate: Sat May 6 14:37:43 2023 +0100

    s/old/legacy
---
 src/couch/priv/stats_descriptions.cfg | 4 ++--
 src/couch/src/couch_file.erl          | 2 +-
 2 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/src/couch/priv/stats_descriptions.cfg 
b/src/couch/priv/stats_descriptions.cfg
index a7ef4f928..46f08d724 100644
--- a/src/couch/priv/stats_descriptions.cfg
+++ b/src/couch/priv/stats_descriptions.cfg
@@ -298,9 +298,9 @@
     {type, counter},
     {desc, <<"number of the attempts to read beyond set limit">>}
 ]}.
-{[couch_file, old_checksums], [
+{[couch_file, legacy_checksums], [
     {type, counter},
-    {desc, <<"number of old checksums found in couch_file instances">>}
+    {desc, <<"number of legacy checksums found in couch_file instances">>}
 ]}.
 {[mango, unindexed_queries], [
     {type, counter},
diff --git a/src/couch/src/couch_file.erl b/src/couch/src/couch_file.erl
index 0a9aaf49c..2f384541d 100644
--- a/src/couch/src/couch_file.erl
+++ b/src/couch/src/couch_file.erl
@@ -870,7 +870,7 @@ verify_checksum(Data, ExpectedChecksum) ->
         false ->
             case ExpectedChecksum == legacy_checksum(Data) of
                 true ->
-                    couch_stats:increment_counter([couch_file, old_checksums]),
+                    couch_stats:increment_counter([couch_file, 
legacy_checksums]),
                     true;
                 false ->
                     false

Reply via email to