From a468220df7fdd339f13c7bb35913610eb1cd4bed Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?St=C3=A9phane=20Lesimple?= Date: Mon, 2 Oct 2023 08:27:19 +0000 Subject: [PATCH] fix: check_collisions: don't report orphan uids on slave, just use their name --- bin/admin/check_uid_gid_collisions.pl | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/bin/admin/check_uid_gid_collisions.pl b/bin/admin/check_uid_gid_collisions.pl index 23a289d..7e1c878 100755 --- a/bin/admin/check_uid_gid_collisions.pl +++ b/bin/admin/check_uid_gid_collisions.pl @@ -304,15 +304,11 @@ sub handle_list { } if ($pass == 0) { - # loop through the unseen IDs we have locally, and report: they would be erased + # loop through the unseen IDs we have locally, and set their corresponding name as 'seen' (delete from unseen) foreach my $local_id (sort keys %unseen_ids) { next if $local_id >= $offset; my $local_name = $local->{'name_by_id'}{$local_id}; delete $unseen_names{$local_name}; - printf("WARN: local orphan $typename: local $typename %d (with name '%s') is only present locally, " - . "if you want to keep it, create it on the master first or it'll be erased\n", - $local_id, $local_name); - $orphans++; } # loop through the unseen names we have locally, and report: they would be erased