mirror of
https://github.com/MariaDB/server.git
synced 2025-07-27 18:02:13 +03:00
MDEV-31003: Second execution for ps-protocol
This patch adds for "--ps-protocol" second execution of queries "SELECT". Also in this patch it is added ability to disable/enable (--disable_ps2_protocol/--enable_ps2_protocol) second execution for "--ps-prototocol" in testcases.
This commit is contained in:
@ -234,11 +234,13 @@ create table t1 ( a int, b int default 0, index (a) );
|
||||
insert into t1 (a) values (0),(0),(0),(0),(0),(0),(0),(0);
|
||||
|
||||
# the view protocol creates an additional statistics data
|
||||
--disable_ps2_protocol
|
||||
--disable_view_protocol
|
||||
flush status;
|
||||
select a from t1 order by a limit 1;
|
||||
show status like 'handler_read%';
|
||||
--enable_view_protocol
|
||||
--enable_ps2_protocol
|
||||
|
||||
flush status;
|
||||
update t1 set a=9999 order by a limit 1;
|
||||
@ -344,6 +346,7 @@ INSERT INTO t1(user_id) SELECT user_id FROM t1;
|
||||
INSERT INTO t1(user_id) SELECT user_id FROM t1;
|
||||
INSERT INTO t1(user_id) SELECT user_id FROM t1;
|
||||
|
||||
--disable_ps2_protocol
|
||||
flush status;
|
||||
SELECT user_id FROM t1 WHERE request_id=9999999999999;
|
||||
show status like '%Handler_read%';
|
||||
@ -353,6 +356,7 @@ UPDATE t1 SET user_id=null WHERE request_id=9999999999999;
|
||||
show status like '%Handler_read%';
|
||||
UPDATE t1 SET user_id=null WHERE request_id=999999999999999999999999999999;
|
||||
show status like '%Handler_read%';
|
||||
--enable_ps2_protocol
|
||||
|
||||
DROP TABLE t1;
|
||||
|
||||
|
Reference in New Issue
Block a user