diff options
author | Eric Wong <e@80x24.org> | 2016-05-17 08:16:47 +0000 |
---|---|---|
committer | Eric Wong <e@80x24.org> | 2016-05-17 08:28:55 +0000 |
commit | 607ed1d281ef682239d6c3ecc70f9d5679a1f651 (patch) | |
tree | 164ccfa318ea2ca2402368cddb19eeb4802aedd2 /lib/PublicInbox/WWW.pm | |
parent | c1e768a619b01498ec391431e5fa31221aca89a7 (diff) | |
download | public-inbox-607ed1d281ef682239d6c3ecc70f9d5679a1f651.tar.gz |
This lets us release old git processes so unlinked packs (leftover from repacking) can be released. This may also be helpful for Xapian as indices get rebuilt for tuning. For SQLite (msgmap), the there may be no benefit besides reducing FD pressure. Followup changes will unify the Inbox and NewsGroup classes and allow better code-sharing between NNTP and HTTP classes (as well as the planned POP3 class).
Diffstat (limited to 'lib/PublicInbox/WWW.pm')
-rw-r--r-- | lib/PublicInbox/WWW.pm | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/PublicInbox/WWW.pm b/lib/PublicInbox/WWW.pm index 95288a7b..465dcb26 100644 --- a/lib/PublicInbox/WWW.pm +++ b/lib/PublicInbox/WWW.pm @@ -129,6 +129,8 @@ sub invalid_inbox { if (defined $obj) { $ctx->{git_dir} = $obj->{mainrepo}; $ctx->{git} = $obj->git; + # for PublicInbox::HTTP::weaken_task: + $ctx->{cgi}->{env}->{'pi-httpd.inbox'} = $obj; $ctx->{-inbox} = $obj; $ctx->{inbox} = $inbox; return; |