From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on dcvr.yhbt.net X-Spam-Level: X-Spam-ASN: X-Spam-Status: No, score=-4.0 required=3.0 tests=ALL_TRUSTED,BAYES_00, URIBL_BLOCKED shortcircuit=no autolearn=unavailable autolearn_force=no version=3.4.0 Received: from localhost (dcvr.yhbt.net [127.0.0.1]) by dcvr.yhbt.net (Postfix) with ESMTP id D87B71FCC6 for ; Sun, 29 May 2016 04:16:50 +0000 (UTC) From: Eric Wong To: meta@public-inbox.org Subject: [PATCH 1/2] inbox: drop references ASAP for search and msgmap Date: Sun, 29 May 2016 04:16:43 +0000 Message-Id: <20160529041644.345-2-e@80x24.org> In-Reply-To: <20160529041644.345-1-e@80x24.org> References: <20160529041644.345-1-e@80x24.org> List-Id: We can't leave them lingering in the parent process at all due to the risk of corruption with multiple processes. --- lib/PublicInbox/Inbox.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/PublicInbox/Inbox.pm b/lib/PublicInbox/Inbox.pm index d050dc8..27218de 100644 --- a/lib/PublicInbox/Inbox.pm +++ b/lib/PublicInbox/Inbox.pm @@ -86,7 +86,7 @@ sub base_url { sub nntp_usable { my ($self) = @_; my $ret = $self->mm && $self->search; - weaken_all(); + $self->{mm} = $self->{search} = undef; $ret; }