From: Ian Jackson Subject: [OSSTEST PATCH 2/1] ts-hosts-allocate-Executive: Finish a couple of transactions Date: Tue, 29 Sep 2015 16:27:38 +0100 Message-ID: <1443540459-31266-1-git-send-email-ian.jackson@eu.citrix.com> References: <1443536078-23449-1-git-send-email-ian.jackson@eu.citrix.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Received: from mail6.bemta3.messagelabs.com ([195.245.230.39]) by lists.xen.org with esmtp (Exim 4.72) (envelope-from ) id 1Zgwor-0005b9-Ou for xen-devel@lists.xenproject.org; Tue, 29 Sep 2015 15:27:53 +0000 In-Reply-To: <1443536078-23449-1-git-send-email-ian.jackson@eu.citrix.com> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: xen-devel@lists.xenproject.org Cc: Ian Jackson , Ian Campbell List-Id: xen-devel@lists.xenproject.org Call $equivflagscheckq->finish() at the end, rather than in the candidate search loop. This avoids missing a `next' control path. Call $resprop_q->finish() at all. One of these is responsible for this message: DBI::db=HASH(0x88e79c4)->disconnect invalidates 1 active statement handle (either destroy statement handles or call finish on them before disconnecting) at Osstest/Executive.pm line 708, line 53. Signed-off-by: Ian Jackson --- ts-hosts-allocate-Executive | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/ts-hosts-allocate-Executive b/ts-hosts-allocate-Executive index 88da504..13a0652 100755 --- a/ts-hosts-allocate-Executive +++ b/ts-hosts-allocate-Executive @@ -366,7 +366,6 @@ END push @{ $candrow->{Warnings} }, "host has multiple equivalence class flags"; } - $equivflagscheckq->finish(); } print DEBUG "$dbg FLAGS MISSINGFLAGS: @missingflags.\n"; @@ -419,7 +418,9 @@ END print DEBUG "$dbg CANDIDATE.\n"; } $findhostsq->finish(); + $equivflagscheckq->finish(); $equivstatusq->finish(); + $resprop_q->finish(); if (!@candidates) { if (defined $use) { -- 1.7.10.4