1
0
mirror of https://github.com/MariaDB/server.git synced 2025-07-29 05:21:33 +03:00

MDEV-31005: Make working cursor-protocol

Updated tests: cases with bugs or which cannot be run
with the cursor-protocol were excluded with
"--disable_cursor_protocol"/"--enable_cursor_protocol"

Fix for v.10.5
This commit is contained in:
Lena Startseva
2024-05-23 08:54:14 +07:00
parent ab569524dc
commit 0a5e4a0191
366 changed files with 1799 additions and 30 deletions

View File

@ -29,9 +29,11 @@ connection master;
# Read the ID of the binlog dump connection,
# as exposed in PROCESSLIST.
--disable_cursor_protocol
select ID from INFORMATION_SCHEMA.PROCESSLIST
where COMMAND = "Binlog Dump"
into @master_dump_pid;
--enable_cursor_protocol
select COMMAND, STATE
from INFORMATION_SCHEMA.PROCESSLIST
@ -47,9 +49,11 @@ sync_slave_with_master;
# Read the ID of the SLAVE IO thread,
# as exposed in PROCESSLIST.
--disable_cursor_protocol
select ID from INFORMATION_SCHEMA.PROCESSLIST
where STATE like "Waiting for master to send event%"
into @slave_io_pid;
--enable_cursor_protocol
select COMMAND, STATE
from INFORMATION_SCHEMA.PROCESSLIST
@ -62,9 +66,11 @@ select NAME, TYPE, PROCESSLIST_COMMAND, PROCESSLIST_STATE
# Read the ID of the SLAVE SQL thread,
# as exposed in PROCESSLIST.
--disable_cursor_protocol
select ID from INFORMATION_SCHEMA.PROCESSLIST
where STATE like "Slave has read all relay log%"
into @slave_sql_pid;
--enable_cursor_protocol
select COMMAND, STATE
from INFORMATION_SCHEMA.PROCESSLIST