From: Eric Wong Date: Wed, 29 Sep 2021 00:14:28 +0000 (+0000) Subject: inbox: do not vivify {-repo_objs} during cleanup X-Git-Tag: v1.7.0~246 X-Git-Url: http://www.git.stargrave.org/?a=commitdiff_plain;h=e3ea02ed136d99edde51e0da041145b2a55ea83c;p=public-inbox.git inbox: do not vivify {-repo_objs} during cleanup This caused config->repo_objs to not fill in {-repo_objs} properly before starting solver. Reported-by: Kyle Meyer Link: https://public-inbox.org/meta/87o88cqobd.fsf@kyleam.com/ Fixes: 63d7b8ceee55a34 ("daemons: revamp periodic cleanup task") --- diff --git a/lib/PublicInbox/Inbox.pm b/lib/PublicInbox/Inbox.pm index c525f4d1..95467d5a 100644 --- a/lib/PublicInbox/Inbox.pm +++ b/lib/PublicInbox/Inbox.pm @@ -30,7 +30,7 @@ sub do_cleanup { my ($ibx) = @_; my $live = git_cleanup($ibx); $ibx->cleanup_shards and $live = 1; - for my $git (@{$ibx->{-repo_objs}}) { + for my $git (@{$ibx->{-repo_objs} // []}) { $live = 1 if $git->cleanup(1); } delete @$ibx{qw(over mm description cloneurl