This is an automated email from the ASF dual-hosted git repository.
rnewson pushed a commit to branch auto-delete-3
in repository https://gitbox.apache.org/repos/asf/couchdb.git
The following commit(s) were added to refs/heads/auto-delete-3 by this push:
new 83ebb9602 use character outside base64url as separator
83ebb9602 is described below
commit 83ebb9602105aa5d632b8e2a8024fed460a8bbb8
Author: Robert Newson <[email protected]>
AuthorDate: Tue Apr 29 15:12:40 2025 +0100
use character outside base64url as separator
---
src/couch_mrview/src/couch_mrview_cleanup.erl | 2 +-
src/fabric/src/fabric_drop_seq.erl | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/src/couch_mrview/src/couch_mrview_cleanup.erl
b/src/couch_mrview/src/couch_mrview_cleanup.erl
index 25c887f46..629bda9a2 100644
--- a/src/couch_mrview/src/couch_mrview_cleanup.erl
+++ b/src/couch_mrview/src/couch_mrview_cleanup.erl
@@ -67,7 +67,7 @@ cleanup_peer_checkpoints_cb({row, Row}, {KeepSigs,
DocsToDelete} = Acc) ->
#doc{
id = <<?LOCAL_DOC_PREFIX, "peer-checkpoint-mrview-", SigHash/binary>>
} = Doc,
- [Sig, _Hash] = binary:split(SigHash, <<"-">>),
+ [Sig, _Hash] = binary:split(SigHash, <<"$">>),
case maps:is_key(Sig, KeepSigs) of
true ->
{ok, Acc};
diff --git a/src/fabric/src/fabric_drop_seq.erl
b/src/fabric/src/fabric_drop_seq.erl
index 3efad427e..7fbb0cbed 100644
--- a/src/fabric/src/fabric_drop_seq.erl
+++ b/src/fabric/src/fabric_drop_seq.erl
@@ -406,7 +406,7 @@ peer_id_from_sig(DbName, Sig0) ->
Hash = couch_util:encodeBase64Url(
crypto:hash(sha256, [atom_to_binary(node()), $0, DbName])
),
- <<Sig1/binary, "-", Hash/binary>>.
+ <<Sig1/binary, "$", Hash/binary>>.
pack_seq(DbName, UpdateSeq) ->
PrefixLen = fabric_util:get_uuid_prefix_len(),