From nobody Mon Feb 9 19:53:20 2026 Delivered-To: importer@patchew.org Received-SPF: pass (zohomail.com: domain of lists.xenproject.org designates 192.237.175.120 as permitted sender) client-ip=192.237.175.120; envelope-from=xen-devel-bounces@lists.xenproject.org; helo=lists.xenproject.org; Authentication-Results: mx.zohomail.com; spf=pass (zohomail.com: domain of lists.xenproject.org designates 192.237.175.120 as permitted sender) smtp.mailfrom=xen-devel-bounces@lists.xenproject.org; dmarc=fail(p=none dis=none) header.from=eu.citrix.com ARC-Seal: i=1; a=rsa-sha256; t=1595611402; cv=none; d=zohomail.com; s=zohoarc; b=GY9uWy3h5+wX4VXj2mLhLeKG+Y8g1ecGDsxVE88qaWfDhJTwVBNxcTSgv4EWbHwHhQ3tAuyS0kqb6mF0J4nKmuGs4rUM5hWWwy1qHePWpOjngQwrh2UVTbA71fbKt/mmWyjiKZCCCW1NQ13/kScfmrFmyAogIrNUw2/vpswRxLA= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1595611402; h=Content-Transfer-Encoding:Cc:Date:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Help:List-Unsubscribe:MIME-Version:Message-ID:References:Sender:Subject:To; bh=QMiUrUdl3iub69OGqXXBTqG/9wTJc/FwBJNgrvFjxKE=; b=U6cMl2SEy7r5qNKNAxjlXzqAxjZe0Em1CghD0cWD0pNR3r75JLoUqXN19V9c3zcbhYKKz4hG9/5pjEoS99bnATpZuKOA846lbZ5VCWxJdPSGA0TJOXrblrObHKLgf2dV/bAp0xTB1+LeFv979u4rA0p5T+t7ljZb9SRUBlpWFDY= ARC-Authentication-Results: i=1; mx.zohomail.com; spf=pass (zohomail.com: domain of lists.xenproject.org designates 192.237.175.120 as permitted sender) smtp.mailfrom=xen-devel-bounces@lists.xenproject.org; dmarc=fail header.from= (p=none dis=none) header.from= Return-Path: Received: from lists.xenproject.org (lists.xenproject.org [192.237.175.120]) by mx.zohomail.com with SMTPS id 1595611402517994.0099784303602; Fri, 24 Jul 2020 10:23:22 -0700 (PDT) Received: from localhost ([127.0.0.1] helo=lists.xenproject.org) by lists.xenproject.org with esmtp (Exim 4.92) (envelope-from ) id 1jz1PY-00060l-2E; Fri, 24 Jul 2020 17:23:08 +0000 Received: from us1-rack-iad1.inumbo.com ([172.99.69.81]) by lists.xenproject.org with esmtp (Exim 4.92) (envelope-from ) id 1jz1PX-0005eH-1D for xen-devel@lists.xenproject.org; Fri, 24 Jul 2020 17:23:07 +0000 Received: from chiark.greenend.org.uk (unknown [2001:ba8:1e3::]) by us1-rack-iad1.inumbo.com (Halon) with ESMTPS id 3c9c94d8-cdd2-11ea-8862-bc764e2007e4; Fri, 24 Jul 2020 17:22:23 +0000 (UTC) Received: from [172.18.45.5] (helo=zealot.relativity.greenend.org.uk) by chiark.greenend.org.uk (Debian Exim 4.84_2 #1) with esmtp (return-path ijackson@chiark.greenend.org.uk) id 1jz1Oo-00021j-N9; Fri, 24 Jul 2020 18:22:22 +0100 X-Inumbo-ID: 3c9c94d8-cdd2-11ea-8862-bc764e2007e4 From: Ian Jackson To: xen-devel@lists.xenproject.org Subject: [OSSTEST PATCH 09/11] sg-report-host-history: Rerganisation: Change loops Date: Fri, 24 Jul 2020 18:22:14 +0100 Message-Id: <20200724172216.28204-10-ian.jackson@eu.citrix.com> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20200724172216.28204-1-ian.jackson@eu.citrix.com> References: <20200724172216.28204-1-ian.jackson@eu.citrix.com> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable X-BeenThere: xen-devel@lists.xenproject.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Xen developer discussion List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Cc: Ian Jackson Errors-To: xen-devel-bounces@lists.xenproject.org Sender: "Xen-devel" Content-Type: text/plain; charset="utf-8" Move the per-host code all into the same per-host loop. One effect is to transpose the db_retry and host loops for mainquery. No functional change. Signed-off-by: Ian Jackson --- sg-report-host-history | 12 ++---------- 1 file changed, 2 insertions(+), 10 deletions(-) diff --git a/sg-report-host-history b/sg-report-host-history index 4b0b5b2d..1f5c14e1 100755 --- a/sg-report-host-history +++ b/sg-report-host-history @@ -469,18 +469,10 @@ db_retry($dbh_tests, [], sub { computeflightsrange(); }); =20 -foreach (keys %hosts) { - read_existing_logs($_); -} - -db_retry($dbh_tests, [], sub { - foreach my $host (sort keys %hosts) { - mainquery($host); - } -}); - foreach my $host (sort keys %hosts) { + read_existing_logs($host); db_retry($dbh_tests, [], sub { + mainquery($host); reporthost $host; }); } --=20 2.20.1