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 e6f784f512517e7c566ec7b6b0c56ab097491e87
Author: Robert Newson <rnew...@apache.org>
AuthorDate: Mon Jun 23 11:43:02 2025 +0100

    reverse order of checks for readability and performance
---
 src/fabric/src/fabric_drop_seq.erl | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/fabric/src/fabric_drop_seq.erl 
b/src/fabric/src/fabric_drop_seq.erl
index 5fde05da9..6b82afc8c 100644
--- a/src/fabric/src/fabric_drop_seq.erl
+++ b/src/fabric/src/fabric_drop_seq.erl
@@ -160,7 +160,7 @@ crossref(PeerCheckpoints0, ShardSyncHistory) ->
                             case
                                 lists:search(
                                     fun({SU, SS, _TU, _TS}) ->
-                                        uuids_match([Uuid, SU]) andalso SS =< 
Seq
+                                        SS =< Seq andalso uuids_match([Uuid, 
SU])
                                     end,
                                     History
                                 )

Reply via email to