xen-devel.lists.xenproject.org archive mirror
 help / color / mirror / Atom feed
* [OSSTEST PATCH] cs-adjust-flight: Remove broken memoisation of queries in for_things
@ 2017-03-20 10:55 Ian Jackson
  0 siblings, 0 replies; only message in thread
From: Ian Jackson @ 2017-03-20 10:55 UTC (permalink / raw)
  To: xen-devel; +Cc: Ian Jackson, Roger Pau Monné

The memo keys failed to include many of the important inputs.

CC: Roger Pau Monné <roger.pau@citrix.com>
Signed-off-by: Ian Jackson <ian.jackson@eu.citrix.com>
---
 cs-adjust-flight | 5 ++---
 1 file changed, 2 insertions(+), 3 deletions(-)

diff --git a/cs-adjust-flight b/cs-adjust-flight
index 45c1420..85ced59 100755
--- a/cs-adjust-flight
+++ b/cs-adjust-flight
@@ -132,10 +132,9 @@ sub for_things ($$$$$$$) {
     my ($spec, $fn, $ifnone,
         $table, $keycol, $basecond, $basecondvals) = @_;
 
-    our (%thing_q, %things_q);
-    my $thing_q = $thing_q{$table} ||= $dbh_tests->prepare
+    my $thing_q = $dbh_tests->prepare
         ("SELECT * FROM $table WHERE $basecond AND $keycol = ?");
-    my $things_q = $things_q{$table} ||= $dbh_tests->prepare
+    my $things_q = $dbh_tests->prepare
         ("SELECT * FROM $table WHERE $basecond");
 
     my ($specfn,$exact) = notspec_exfn("FOR_THINGS $table.$keycol",$spec);
-- 
2.11.0


_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xen.org
https://lists.xen.org/xen-devel

^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2017-03-20 10:55 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-03-20 10:55 [OSSTEST PATCH] cs-adjust-flight: Remove broken memoisation of queries in for_things Ian Jackson

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).