From 2bcf3806fb2eb5b306e31ec1b3079f396afc003b Mon Sep 17 00:00:00 2001 From: Ian Jackson Date: Mon, 10 Aug 2020 13:09:28 +0100 Subject: [PATCH] sg-report-job-history: Prep for fork: Move $revisionsq query We will need to prepare this in add_revisions so that it works when we do each (job,branch) in a different process. It is OK that it is still global, becauswe we only call add_revisions in the children. Signed-off-by: Ian Jackson --- sg-report-job-history | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/sg-report-job-history b/sg-report-job-history index 47fc7a6..424053f 100755 --- a/sg-report-job-history +++ b/sg-report-job-history @@ -89,15 +89,16 @@ if (defined($flight)) { push @jobs, $job; } -our $revisionsq= db_prepare(<execute($flightnum, $j); while (my $row= $revisionsq->fetchrow_hashref()) { my $n= $row->{name}; -- 2.39.5