diff options
author | Eric Wong <e@80x24.org> | 2021-03-11 02:45:38 -0800 |
---|---|---|
committer | Eric Wong <e@80x24.org> | 2021-03-11 16:35:21 -0400 |
commit | 764105971054ce2352e38868fd1d3ae4e08c6784 (patch) | |
tree | 4ff90b6074f02baccfc1d7ff2d0653005e5d125d /lib/PublicInbox/V2Writable.pm | |
parent | f8911d2ec389880adb5faca49f1fdf816a819561 (diff) | |
download | public-inbox-764105971054ce2352e38868fd1d3ae4e08c6784.tar.gz |
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")
Diffstat (limited to 'lib/PublicInbox/V2Writable.pm')
-rw-r--r-- | lib/PublicInbox/V2Writable.pm | 2 |
1 files changed, 1 insertions, 1 deletions
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}; |