From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on dcvr.yhbt.net X-Spam-Level: X-Spam-ASN: X-Spam-Status: No, score=-4.2 required=3.0 tests=ALL_TRUSTED,BAYES_00, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF shortcircuit=no autolearn=ham autolearn_force=no version=3.4.6 Received: from localhost (dcvr.yhbt.net [127.0.0.1]) by dcvr.yhbt.net (Postfix) with ESMTP id 132021F429 for ; Tue, 28 Mar 2023 02:59:06 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=80x24.org; s=selector1; t=1679972346; bh=WF9M4lQnppu1w+nyoOXCxbXDqdUPs+DL5dpmidAHFZ0=; h=From:To:Subject:Date:In-Reply-To:References:From; b=D2HD5O8MG+uPGfZueno6Yn5O3YxTkwXua3RKBWqiyIVteQQMrk9p4rQGNFpqS2bt8 Ij0N/ZmM2XxQkWmoKP1dOH9LF6sD+69oQ6q3kufW8YWWqt8J/7g/R7+HcsM2UIwUCo q/bF3zYa2PMOx+Ciros7d0ZHxDyplGhPxu/0fRS4= From: Eric Wong To: meta@public-inbox.org Subject: [PATCH 2/4] cindex: always break out of event loop on $DO_QUIT Date: Tue, 28 Mar 2023 02:59:02 +0000 Message-Id: <20230328025904.3822761-3-e@80x24.org> In-Reply-To: <20230328025904.3822761-1-e@80x24.org> References: <20230328025904.3822761-1-e@80x24.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit List-Id: Shard workers may not die soon enough (or get stuck), just let the parent die earlier since it doesn't need to commit anything. --- lib/PublicInbox/CodeSearchIdx.pm | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/PublicInbox/CodeSearchIdx.pm b/lib/PublicInbox/CodeSearchIdx.pm index 85e44cdc..6907570d 100644 --- a/lib/PublicInbox/CodeSearchIdx.pm +++ b/lib/PublicInbox/CodeSearchIdx.pm @@ -689,6 +689,7 @@ sub do_prune ($) { } sub shards_active { # post_loop_do + return if $DO_QUIT; scalar(grep { $_->{-cidx_quit} } @IDX_SHARDS); }