[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Xen-devel] [OSSTEST PATCH 05/13] sg-report-host-history: Get job status from mainquery


  • To: <xen-devel@xxxxxxxxxxxxxxxxxxxx>
  • From: Ian Jackson <ian.jackson@xxxxxxxxxxxxx>
  • Date: Fri, 8 Nov 2019 18:49:53 +0000
  • Authentication-results: esa2.hc3370-68.iphmx.com; dkim=none (message not signed) header.i=none; spf=None smtp.pra=ian.jackson@xxxxxxxxxxxxx; spf=Pass smtp.mailfrom=Ian.Jackson@xxxxxxxxxx; spf=None smtp.helo=postmaster@xxxxxxxxxxxxxxx
  • Cc: Ian Jackson <ian.jackson@xxxxxxxxxxxxx>
  • Delivery-date: Fri, 08 Nov 2019 18:50:47 +0000
  • Ironport-sdr: rXdRlxyQw5Gw9fS4Z91h2bGnWjpFqXqmurblOHNSIELQSeotXa6PchhOKagpMgymF1K2S15lMJ 480I5PGkX/Sfo1nqYtHS3HJdf5GqCglnqWaQMXtX6gJ+oif/qIBLTrmoQTOmijisvxK7tUa/gA bSsVZMsk8sE+EeoaJxKdXIeb9EfyBPikf9ihRS5IPYDKiK6O5aOCFltgqnur0AQcKfezy+vvBi 3UvprpQG8E/4bUDYA1pbrlhHauV+j4yJY+CyyQPQmRNNTwtO8Na80KOMqLmebY5h9W6cbPhoWY t1s=
  • List-id: Xen developer discussion <xen-devel.lists.xenproject.org>

We are going to need this as part of our data reuse cache key, so we
need it this early.  This change hardly slows the query down.

Signed-off-by: Ian Jackson <ian.jackson@xxxxxxxxxxxxx>
---
 sg-report-host-history | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/sg-report-host-history b/sg-report-host-history
index d47784d9..81a7a8d8 100755
--- a/sg-report-host-history
+++ b/sg-report-host-history
@@ -122,8 +122,9 @@ sub mainquery () {
     our @params = keys %hosts;
 
     our $runvarq //= db_prepare(<<END);
-       SELECT flight, job, name, val
+       SELECT flight, job, name, val, status
          FROM runvars
+          JOIN jobs USING (flight, job)
         WHERE $namecond
           AND ($valcond)
           AND $flightcond
@@ -186,10 +187,9 @@ sub reporthost ($) {
 END
 
     our $infoq //= db_prepare(<<END);
-       SELECT blessing, branch, intended, status
+       SELECT blessing, branch, intended
          FROM flights
-         JOIN jobs USING (flight)
-        WHERE flight=? AND job=?
+        WHERE flight=? AND ?!='X'
 END
 
     our $allocdq //= db_prepare(<<END);
-- 
2.11.0


_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxxx
https://lists.xenproject.org/mailman/listinfo/xen-devel

 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.