From 764105971054ce2352e38868fd1d3ae4e08c6784 Mon Sep 17 00:00:00 2001 From: Eric Wong Date: Thu, 11 Mar 2021 02:45:38 -0800 Subject: v2writable: fix undocumented --xapian-only We can't pass $self and GLOBs across IPC channels transparently. I only noticed this because I'm testing the application/octet-stream fallback with https://public-inbox.org/meta/20210311014539.19756-1-e@80x24.org/ Fixes: bf8df8160076d7a1 ("searchidxshard: use PublicInbox::IPC to kill lots of code") --- lib/PublicInbox/V2Writable.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/PublicInbox') diff --git a/lib/PublicInbox/V2Writable.pm b/lib/PublicInbox/V2Writable.pm index cbd4f003..03590850 100644 --- a/lib/PublicInbox/V2Writable.pm +++ b/lib/PublicInbox/V2Writable.pm @@ -1216,7 +1216,7 @@ sub sync_ranges ($$) { sub index_xap_only { # git->cat_async callback my ($bref, $oid, $type, $size, $smsg) = @_; - my $self = $smsg->{self}; + my $self = delete $smsg->{self}; my $idx = idx_shard($self, $smsg->{num}); $idx->index_eml(PublicInbox::Eml->new($bref), $smsg); $self->{transact_bytes} += $smsg->{bytes}; -- cgit v1.2.3-24-ge0c7