diff options
author | Jay Doane <jaydoane@apache.org> | 2023-05-10 11:44:52 -0700 |
---|---|---|
committer | Jay Doane <jaydoane@apache.org> | 2023-05-10 11:44:52 -0700 |
commit | 57b7c45f25f75c6e90b4c9671ee9764286abf51e (patch) | |
tree | 2da6f7fdd1877e0ce3b9b78e6ee8c9d86767598c | |
parent | 9ea1ad2301db84ddb6b7e7f96bea7c69f438f28a (diff) | |
download | couchdb-57b7c45f25f75c6e90b4c9671ee9764286abf51e.tar.gz |
More explicit minor_version for term_to_binary
This fixes some more tests
-rw-r--r-- | src/couch_replicator/src/couch_replicator_ids.erl | 2 | ||||
-rw-r--r-- | src/mem3/src/mem3_hash.erl | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/src/couch_replicator/src/couch_replicator_ids.erl b/src/couch_replicator/src/couch_replicator_ids.erl index 86fe1f26e..223f52861 100644 --- a/src/couch_replicator/src/couch_replicator_ids.erl +++ b/src/couch_replicator/src/couch_replicator_ids.erl @@ -120,7 +120,7 @@ maybe_append_filters( true -> [<<"winning_revs_only">>] end, - couch_util:to_hex(couch_hash:md5_hash(term_to_binary(Base3))). + couch_util:to_hex(couch_hash:md5_hash(term_to_binary(Base3, [{minor_version, 1}]))). maybe_append_options(Options, RepOptions) -> lists:foldl( diff --git a/src/mem3/src/mem3_hash.erl b/src/mem3/src/mem3_hash.erl index ccaab7223..0b5402451 100644 --- a/src/mem3/src/mem3_hash.erl +++ b/src/mem3/src/mem3_hash.erl @@ -53,7 +53,7 @@ get_hash_fun(DbName0) when is_binary(DbName0) -> crc32(Item) when is_binary(Item) -> erlang:crc32(Item); crc32(Item) -> - erlang:crc32(term_to_binary(Item)). + erlang:crc32(term_to_binary(Item, [{minor_version, 1}])). get_hash_fun_int(Opts) when is_list(Opts) -> case lists:keyfind(hash, 1, Opts) of |