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,AWL,BAYES_00, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF, T_SCC_BODY_TEXT_LINE 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 D8B251F518 for ; Thu, 30 Nov 2023 11:41:09 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=80x24.org; s=selector1; t=1701344469; bh=saX0RxrqwzZVQsCMwesEYSq4TYGdgbpMM8/d98/qLx0=; h=From:To:Subject:Date:In-Reply-To:References:From; b=fhas5/Sds1mOdI1EXWifZ60xFe3sNoDCZr4l5xuCvK/P76IAzHW1/DPlqQSiVMrmE oEJUqFl6lxEN9r6K/T8Lo9CeZUQwGj+2WR0SWIsXaTwTDJwUhap9rf7lRHfe/gY8dV S5G7qb5mmZEtPsz66/qi3ppJ/Zf5JcFprV5xv4Eo= From: Eric Wong To: meta@public-inbox.org Subject: [PATCH 05/15] cindex: keep batch pipe for pruning SHA-256 repos Date: Thu, 30 Nov 2023 11:40:58 +0000 Message-ID: <20231130114109.2577708-6-e@80x24.org> In-Reply-To: <20231130114109.2577708-1-e@80x24.org> References: <20231130114109.2577708-1-e@80x24.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit List-Id: This fixes the case where we're running both SHA-256 and SHA-1. There's no tests for SHA-256, yet, but the bug is pretty obvious upon reading the code. --- lib/PublicInbox/CodeSearchIdx.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/PublicInbox/CodeSearchIdx.pm b/lib/PublicInbox/CodeSearchIdx.pm index cf6a6efe..26018232 100644 --- a/lib/PublicInbox/CodeSearchIdx.pm +++ b/lib/PublicInbox/CodeSearchIdx.pm @@ -1087,7 +1087,7 @@ sub run_prune { # OnDestroy when `git config extensions.objectFormat' are done # ) | awk | sort | comm | cidx_read_comm() my ($awk_opt, $sort_opt, $batch_opt); my $comm_opt = { -C => "$TMPDIR" }; - pipe(local $awk_opt->{0}, local $batch_opt->{1}); + pipe(local $awk_opt->{0}, $batch_opt->{1}); pipe(local $sort_opt->{0}, local $awk_opt->{1}); pipe(local $comm_opt->{0}, local $sort_opt->{1}); run_await(\@AWK, $CMD_ENV, $awk_opt, \&cmd_done);