diff options
Diffstat (limited to 'src/mem3/src/mem3_rep.erl')
-rw-r--r-- | src/mem3/src/mem3_rep.erl | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/mem3/src/mem3_rep.erl b/src/mem3/src/mem3_rep.erl index 3d9187796..8d996d617 100644 --- a/src/mem3/src/mem3_rep.erl +++ b/src/mem3/src/mem3_rep.erl @@ -106,8 +106,8 @@ make_local_id(#shard{node=SourceNode}, #shard{node=TargetNode}, Filter) -> make_local_id(SourceThing, TargetThing, Filter) -> - S = couch_util:encodeBase64Url(crypto:hash(md5, term_to_binary(SourceThing))), - T = couch_util:encodeBase64Url(crypto:hash(md5, term_to_binary(TargetThing))), + S = couch_util:encodeBase64Url(couch_hash:md5_hash(term_to_binary(SourceThing))), + T = couch_util:encodeBase64Url(couch_hash:md5_hash(term_to_binary(TargetThing))), F = case is_function(Filter) of true -> {new_uniq, Hash} = erlang:fun_info(Filter, new_uniq), @@ -339,7 +339,7 @@ update_locals(Acc) -> find_repl_doc(SrcDb, TgtUUIDPrefix) -> SrcUUID = couch_db:get_uuid(SrcDb), - S = couch_util:encodeBase64Url(crypto:hash(md5, term_to_binary(SrcUUID))), + S = couch_util:encodeBase64Url(couch_hash:md5_hash(term_to_binary(SrcUUID))), DocIdPrefix = <<"_local/shard-sync-", S/binary, "-">>, FoldFun = fun(#doc{id = DocId, body = {BodyProps}} = Doc, _) -> TgtUUID = couch_util:get_value(<<"target_uuid">>, BodyProps, <<>>), |