mirror of
https://github.com/MariaDB/server.git
synced 2025-04-16 20:25:33 +02:00

Rewrite test not to use infinite procedure, it is not necessary to test. Signed-off-by: Julius Goryavsky <julius.goryavsky@mariadb.com>
25 lines
794 B
Text
25 lines
794 B
Text
connection node_2;
|
|
connection node_1;
|
|
CREATE TABLE t1 (f1 INTEGER, f2 CHAR(20) DEFAULT 'abc') ENGINE=InnoDB;
|
|
INSERT INTO t1 (f1) VALUES (1),(65535);
|
|
CREATE PROCEDURE proc_insert (repeat_count int)
|
|
BEGIN
|
|
DECLARE current_num int;
|
|
DECLARE CONTINUE HANDLER FOR SQLEXCEPTION BEGIN END;
|
|
SET current_num = 0;
|
|
SET SESSION wsrep_sync_wait = 0;
|
|
WHILE current_num < repeat_count do
|
|
INSERT INTO t1 (f1) VALUES (FLOOR( 1 + RAND( ) * 65535 ));
|
|
SELECT SLEEP(0.1);
|
|
SET current_num = current_num + 1;
|
|
END WHILE;
|
|
END|
|
|
connect node_1b, 127.0.0.1, root, , test, $NODE_MYPORT_1;
|
|
connection node_1b;
|
|
connection node_1b;
|
|
connection node_1;
|
|
DROP PROCEDURE proc_insert;
|
|
DROP TABLE t1;
|
|
disconnect node_1b;
|
|
CALL mtr.add_suppression("WSREP: .* conflict state after post commit ");
|
|
set global innodb_status_output=Default;
|