diff options
author | Eric Wong <e@80x24.org> | 2021-01-31 22:28:23 -1000 |
---|---|---|
committer | Eric Wong <e@80x24.org> | 2021-02-01 11:38:16 +0000 |
commit | 7d3917a9722e445ecb040c2c01e9665123ad5b6c (patch) | |
tree | c7f8b81bb62e65043a3d863a0fea68e358020001 /lib/PublicInbox/LEI.pm | |
parent | 3d073baacb37dde7706c615e07a970ef44f50d8f (diff) | |
download | public-inbox-7d3917a9722e445ecb040c2c01e9665123ad5b6c.tar.gz |
We don't need to send the temporary xsearch {git} object over to workers, just the directory name.
Diffstat (limited to 'lib/PublicInbox/LEI.pm')
-rw-r--r-- | lib/PublicInbox/LEI.pm | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/lib/PublicInbox/LEI.pm b/lib/PublicInbox/LEI.pm index 4f7ed171..08554932 100644 --- a/lib/PublicInbox/LEI.pm +++ b/lib/PublicInbox/LEI.pm @@ -401,8 +401,9 @@ sub atfork_parent_wq { my ($self, $wq) = @_; my $env = delete $self->{env}; # env is inherited at fork my $lei = bless { %$self }, ref($self); - if (my $dedupe = delete $lei->{dedupe}) { - $lei->{dedupe} = $wq->deep_clone($dedupe); + for my $f (qw(dedupe ovv)) { + my $tmp = delete($lei->{$f}) or next; + $lei->{$f} = $wq->deep_clone($tmp); } $self->{env} = $env; delete @$lei{qw(3 -lei_store cfg old_1 pgr lxs)}; # keep l2m |