Hi Magnus,
Why not backport the whole wait_until_disconnected from 6.0-rpl? I.e.,
include error 1040, and add the comment why (nice to have same version
in 5.1 and 6.0 too).
/Sven
Magnus Svensson wrote:
> #At file:///home/msvensson/mysql/5.1-rpl/ based on
> revid:msvensson@stripped
>
> 2711 Magnus Svensson 2008-12-19
> Bug #40704 main.events_restart fails sporadically in pushbuild: "server has
> gone away"
> modified:
> mysql-test/include/wait_until_disconnected.inc
>
> per-file messages:
> mysql-test/include/wait_until_disconnected.inc
> Allow 2013 as an expected error code
> === modified file 'mysql-test/include/wait_until_disconnected.inc'
> --- a/mysql-test/include/wait_until_disconnected.inc 2008-12-10 18:40:27 +0000
> +++ b/mysql-test/include/wait_until_disconnected.inc 2008-12-19 15:48:31 +0000
> @@ -7,7 +7,7 @@ let $counter= 500;
> let $mysql_errno= 0;
> while (!$mysql_errno)
> {
> - --error 0,1053,2002,2006
> + --error 0,1053,2002,2006,2013
> show status;
>
> dec $counter;
>
>
--
Sven Sandberg, Software Engineer
MySQL AB, www.mysql.com