From e3ea02ed136d99edde51e0da041145b2a55ea83c Mon Sep 17 00:00:00 2001 From: Eric Wong Date: Wed, 29 Sep 2021 00:14:28 +0000 Subject: [PATCH] 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") --- lib/PublicInbox/Inbox.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- 2.44.0