summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJay Doane <jaydoane@apache.org>2023-05-08 17:14:16 -0700
committerJay Doane <jaydoane@apache.org>2023-05-08 17:14:16 -0700
commit786408e08d8db3164be67c53d8a35de8973f0b39 (patch)
tree8ec24adbbbe57a4533b34d83c2c82a359cedb89c
parent7045a1061c0f1a84968ee5287dcb556db4bfd290 (diff)
downloadcouchdb-786408e08d8db3164be67c53d8a35de8973f0b39.tar.gz
fixup: can't find include lib "couch/include/couch_db.hrl"
-rw-r--r--src/couch_epi/src/couch_epi_util.erl4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/couch_epi/src/couch_epi_util.erl b/src/couch_epi/src/couch_epi_util.erl
index 3f445788b..7ec9c4fa4 100644
--- a/src/couch_epi/src/couch_epi_util.erl
+++ b/src/couch_epi/src/couch_epi_util.erl
@@ -12,8 +12,6 @@
-module(couch_epi_util).
--include_lib("couch/include/couch_db.hrl").
-
-export([module_version/1, hash/1, module_exists/1]).
-compile([nowarn_deprecated_function]).
@@ -24,7 +22,7 @@ module_version(Module) ->
VSNs.
hash(Term) ->
- <<SigInt:128/integer>> = couch_hash:md5_hash(?term_to_bin(Term)),
+ <<SigInt:128/integer>> = couch_hash:md5_hash(term_to_binary(Term, [{minor_version, 1}])),
lists:flatten(io_lib:format("\"~.36B\"", [SigInt])).
module_exists(Module) ->