From: Eric Wong Date: Fri, 10 Jan 2025 23:20:11 +0000 (+0000) Subject: v2writable: {in_unindex} moved to self X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=9a9d5330a1bbfd2332b30de544a4af5fcc25a4ab;p=thirdparty%2Fpublic-inbox.git v2writable: {in_unindex} moved to self {in_unindex} is already local-ized for $sync, so moving it to $self is trivial since we use ->async_wait_all to ensure cat-file requests are done. --- diff --git a/lib/PublicInbox/V2Writable.pm b/lib/PublicInbox/V2Writable.pm index 0bd49627f..072542cb0 100644 --- a/lib/PublicInbox/V2Writable.pm +++ b/lib/PublicInbox/V2Writable.pm @@ -1014,7 +1014,7 @@ sub unindex_oid ($$;$) { # git->cat_async callback return index_finalize($arg, 0); my $self = $arg->{self}; local $self->{current_info} = "$self->{current_info} $oid"; - my $unindexed = $arg->{in_unindex} ? $arg->{unindexed} : undef; + my $unindexed = $self->{in_unindex} ? $arg->{unindexed} : undef; my $mm = $self->{mm}; my $mids = mids(PublicInbox::Eml->new($bref)); undef $$bref; @@ -1057,7 +1057,7 @@ sub unindex_todo ($$$) { # order does not matter, here: my $fh = $unit->{git}->popen(qw(log --raw -r --no-notes --no-color --no-abbrev --no-renames), $unindex_range); - local $sync->{in_unindex} = 1; + local $self->{in_unindex} = 1; my $unindex_oid = $self->can('unindex_oid'); while (<$fh>) { /\A:\d{6} 100644 $OID ($OID) [AM]\tm$/o or next;