Skip to content

Commit 17088dd

Browse files
committed
MDEV-19024 sys_vars.transaction_prealloc_size_bug27322 fails in buildbot with wrong result
Take into account ps-protocol states. Note, repace_regex was redundant, because Host column was replaced anyway
1 parent 2f9cd06 commit 17088dd

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

mysql-test/suite/sys_vars/t/transaction_prealloc_size_bug27322.test

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -44,22 +44,23 @@ SET @def_var= @@session.transaction_prealloc_size;
4444
SET SESSION transaction_prealloc_size=1024*1024*1024*1;
4545
# Embedded server is shows "cleaning up" as STATE, while non-embedded shows "init"
4646
--replace_column 1 <Id> 3 <Host> 6 <Time> 7 <State>
47-
--replace_regex /localhost[:0-9]*/localhost/
47+
--replace_result Execute Query
4848
SHOW PROCESSLIST;
4949
SET SESSION transaction_prealloc_size=1024*1024*1024*2;
5050
--replace_column 1 <Id> 3 <Host> 6 <Time> 7 <State>
51-
--replace_regex /localhost[:0-9]*/localhost/
51+
--replace_result Execute Query
5252
SHOW PROCESSLIST;
5353
SET SESSION transaction_prealloc_size=1024*1024*1024*3;
5454
--replace_column 1 <Id> 3 <Host> 6 <Time> 7 <State>
55-
--replace_regex /localhost[:0-9]*/localhost/
55+
--replace_result Execute Query
5656
SHOW PROCESSLIST;
5757
SET SESSION transaction_prealloc_size=1024*1024*1024*4;
5858
--replace_column 1 <Id> 3 <Host> 6 <Time> 7 <State>
59-
--replace_regex /localhost[:0-9]*/localhost/
59+
--replace_result Execute Query
6060
SHOW PROCESSLIST;
6161
SET SESSION transaction_prealloc_size=1024*1024*1024*5;
6262
--replace_column 1 <Id> 3 <Host> 6 <Time> 7 <State>
63+
--replace_result Execute Query
6364
SHOW PROCESSLIST;
6465
--enable_warnings
6566

0 commit comments

Comments
 (0)