randgen team mailing list archive
-
randgen team
-
Mailing list archive
-
Message #00060
Re: [Branch ~randgen/randgen/rqg2] Rev 576: more robust ExecutionTimeComparator
-
To:
randgen@xxxxxxxxxxxxxxxxxxx
-
From:
"John H. Embretsen" <johnemb@xxxxxxxxx>
-
Date:
Tue, 26 Oct 2010 16:02:01 +0200
-
In-reply-to:
<20101026075627.22970.63994.launchpad@loganberry.canonical.com>
-
User-agent:
Mozilla/5.0 (X11; U; SunOS i86pc; en-US; rv:1.9.1.9) Gecko/20100318 Lightning/1.0b1 Thunderbird/3.0.4
Hi Philip,
I just have a couple of questions about this change...
On 10/26/10 09:56, noreply@xxxxxxxxxxxxx wrote:
------------------------------------------------------------
revno: 576
committer: eve<philips@eve>
branch nick: randgen-dsmrr-cpk
timestamp: Tue 2010-10-26 10:54:59 +0300
message:
more robust ExecutionTimeComparator
Robust... against what? Faulty queries?
modified:
lib/GenTest/Validator/ExecutionTimeComparator.pm
Part of the diff:
-------------------------------------------
@@ -47,6 +48,7 @@
my $query = $results->[0]->query();
return STATUS_WONT_HANDLE if $query !~ m{^\s*SELECT}sio;
+ return STATUS_WONT_HANDLE if $results->[0]->status() != STATUS_OK ||
$results->[0]->status() != STATUS_OK;
my @explains;
foreach my $executor_id (0..1) {
-------------------------------------------
I don't understand some detail here... is there a reason why the same
thing ($results->[0]->status() != STATUS_OK) is on both sides of the "||" ?
Did you mean to remove "$query !~ m{^\s*SELECT}sio" entirely?
regards,
--
John
Follow ups