You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@couchdb.apache.org by ja...@apache.org on 2025/07/04 14:26:22 UTC

(couchdb) 10/25: fix latest_shard_sync_checkpoints

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

jan pushed a commit to branch auto-delete-3-plus-shard-move
in repository https://gitbox.apache.org/repos/asf/couchdb.git

commit a2a38f096446548b563b0280cbc82a3754e95bcd
Author: Robert Newson <rn...@apache.org>
AuthorDate: Fri Jun 13 15:53:14 2025 +0100

    fix latest_shard_sync_checkpoints
---
 src/fabric/src/fabric_drop_seq.erl | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/src/fabric/src/fabric_drop_seq.erl b/src/fabric/src/fabric_drop_seq.erl
index d6112a957..ce2b942d9 100644
--- a/src/fabric/src/fabric_drop_seq.erl
+++ b/src/fabric/src/fabric_drop_seq.erl
@@ -376,9 +376,9 @@ decode_seq(OpaqueSeq) ->
 
 latest_shard_sync_checkpoints(ShardSyncHistory) ->
     maps:fold(
-        fun({R, SN, _TN}, History, Acc) ->
-            {SU, SS, _TU, _TS} = hd(History),
-            maps:merge_with(fun merge_peers/3, #{{R, SN} => {SU, SS}}, Acc)
+        fun({R, _SN, TN}, History, Acc) ->
+            {_SU, _SS, TU, TS} = hd(History),
+            maps:merge_with(fun merge_peers/3, #{{R, TN} => {TU, TS}}, Acc)
         end,
         #{},
         ShardSyncHistory