List:Commits« Previous MessageNext Message »
From:Bernt M. Johnsen Date:February 26 2009 9:37am
Subject:bzr commit into mysql-6.0-bugteam branch (bernt.johnsen:3085)
View as plain text  
#At file:///home/bernt/mysql/branch/6.0-bugteam/ based on
revid:vvaintroub@stripped

 3085 Bernt M. Johnsen	2009-02-26 [merge]
      Merged from gca-branch (bug 43110)

    modified:
      mysql-test/t/ps.test
=== modified file 'mysql-test/t/ps.test'
--- a/mysql-test/t/ps.test	2009-02-25 12:27:38 +0000
+++ b/mysql-test/t/ps.test	2009-02-26 07:23:54 +0000
@@ -946,8 +946,13 @@ set global max_prepared_stmt_count=3;
 select @@max_prepared_stmt_count;
 show status like 'prepared_stmt_count';
 prepare stmt from "select 1";
+
 connect (con1,localhost,root,,);
+
+# Switch to connection con1
 connection con1;
+let $con1_id=`SELECT CONNECTION_ID()`;
+
 prepare stmt from "select 2";
 prepare stmt1 from "select 3";
 --error ER_MAX_PREPARED_STMT_COUNT_REACHED
@@ -957,18 +962,17 @@ connection default;
 prepare stmt2 from "select 4";
 select @@max_prepared_stmt_count;
 show status like 'prepared_stmt_count';
+
+# Disconnect connection con1 and switch to default connection
 disconnect con1;
 connection default;
-# Wait for the connection to die: deal with a possible race
+
+# Wait for the connection con1 to die
+let $wait_condition=SELECT COUNT(*)=0 FROM information_schema.processlist WHERE
id=$con1_id;
+--source include/wait_condition.inc
+
 deallocate prepare stmt;
-let $query= select variable_value from information_schema.global_status
-            where variable_name = 'prepared_stmt_count';
-let $count= `$query`;
-if ($count)
-{
---sleep 1
-  let $count= `$query`;
-}
+
 select @@max_prepared_stmt_count;
 show status like 'prepared_stmt_count';
 #


Attachment: [text/bzr-bundle] bzr/bernt.johnsen@sun.com-20090226083652-fmmaypgf7ox28naw.bundle
Thread
bzr commit into mysql-6.0-bugteam branch (bernt.johnsen:3085)Bernt M. Johnsen26 Feb 2009