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

mtr: perfschema.socket_{connect,instances_func} "Expect X"

Match test output with what it is testing.
This commit is contained in:
Daniel Black
2021-03-04 12:12:24 +11:00
parent d2dce1c945
commit 1e7fed721b
4 changed files with 17 additions and 17 deletions

View File

@ -83,10 +83,10 @@ Expect 1
# There are two entries with 'wait/io/socket/sql/server_tcpip_socket',
# for [::] and for 0.0.0.0.
# They share the same thread id with 'wait/io/socket/sql/server_unix_socket'.
SELECT COUNT(*) = 2 AS 'Expect 1'
SELECT COUNT(*) = 2 AS 'Expect 2'
FROM performance_schema.socket_instances
WHERE EVENT_NAME = 'wait/io/socket/sql/server_tcpip_socket';
Expect 1
Expect 2
1
# Get the 'server_tcpip_socket' thread id
SELECT DISTINCT THREAD_ID INTO @thread_id
@ -125,15 +125,15 @@ WHERE EVENT_NAME = 'wait/io/socket/sql/server_unix_socket';
Expect 1
1
# Server listening sockets (TCP and Unix) are handled on the same thread
SELECT COUNT(*) = 3 AS 'Expect 1'
SELECT COUNT(*) = 3 AS 'Expect 3'
FROM performance_schema.socket_instances
WHERE THREAD_ID = @thread_id;
Expect 1
Expect 3
1
SELECT COUNT(*) = 3 AS 'Expect 1'
SELECT COUNT(*) = 3 AS 'Expect 3'
FROM performance_schema.socket_instances
WHERE THREAD_ID = @thread_id;
Expect 1
Expect 3
1
#Compare server listener socket thread ids
select @match_thread_id;