From: Ian Jackson <ian.jackson@eu.citrix.com>
To: xen-devel@lists.xenproject.org
Cc: "Ian Jackson" <ian.jackson@eu.citrix.com>,
"Roger Pau Monné" <roger.pau@citrix.com>
Subject: [OSSTEST PATCH] cs-adjust-flight: Remove broken memoisation of queries in for_things
Date: Mon, 20 Mar 2017 10:55:25 +0000 [thread overview]
Message-ID: <20170320105525.20534-1-ian.jackson@eu.citrix.com> (raw)
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
reply other threads:[~2017-03-20 10:55 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20170320105525.20534-1-ian.jackson@eu.citrix.com \
--to=ian.jackson@eu.citrix.com \
--cc=roger.pau@citrix.com \
--cc=xen-devel@lists.xenproject.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).