mirror of
https://github.com/MariaDB/server.git
synced 2025-01-19 13:32:33 +01:00
545ac7f323
mysql-test/t/rpl_trigger.test: Test cleanup mysql-test/t/rpl_ndb_sync.test: Test cleanup mysql-test/t/rpl_ndb_idempotent.test: Test cleanup mysql-test/r/rpl_trigger.result: Updated result files mysql-test/r/rpl_ndb_sync.result: Updated result files mysql-test/r/rpl_ndb_idempotent.result: Updated result files mysql-test/t/rpl_ndb_dd_basic.test: Rename: mysql-test/t/rpl_ndb_disk.test -> mysql-test/t/rpl_ndb_dd_basic.test mysql-test/r/rpl_ndb_dd_basic.result: Rename: mysql-test/t/rpl_ndb_dd_basic.result -> mysql-test/r/rpl_ndb_dd_basic.result mysql-test/r/rpl_ndb_sp006.result: New results file mysql-test/t/rpl_row_sp007_innodb-slave.opt: Ensure slave tables are created as innodb mysql-test/t/disabled.def: updated 17290 mysql-test/r/rpl_ndb_sp007.result: New results file mysql-test/t/rpl_ndb_sp007.test: Added comment mysql-test/t/rpl_ndb_sp006.test: Added comment mysql-test/extra/rpl_tests/rpl_row_sp003.test: Augmented for use with NDB due to injector thread not populating the bin log before sync with master is done mysql-test/r/rpl_ndb_sp003.result: New results file mysql-test/t/rpl_ndb_sp003.test: Wrapper to use same code for testing NDB that is used for InnoDB Currently
49 lines
1,002 B
Text
49 lines
1,002 B
Text
stop slave;
|
|
drop table if exists t1,t2,t3,t4,t5,t6,t7,t8,t9;
|
|
reset master;
|
|
reset slave;
|
|
drop table if exists t1,t2,t3,t4,t5,t6,t7,t8,t9;
|
|
start slave;
|
|
DROP PROCEDURE IF EXISTS test.p1;
|
|
DROP PROCEDURE IF EXISTS test.p2;
|
|
DROP TABLE IF EXISTS test.t1;
|
|
CREATE TABLE test.t1(a INT,PRIMARY KEY(a))ENGINE=NDBCLUSTER;
|
|
CREATE PROCEDURE test.p1()
|
|
BEGIN
|
|
INSERT INTO test.t1 VALUES (4);
|
|
SELECT get_lock("test", 100);
|
|
UPDATE test.t1 set a=a+4 WHERE a=4;
|
|
END|
|
|
CREATE PROCEDURE test.p2()
|
|
BEGIN
|
|
UPDATE test.t1 SET a=a+1;
|
|
END|
|
|
SELECT get_lock("test", 200);
|
|
get_lock("test", 200)
|
|
1
|
|
CALL test.p1();
|
|
CALL test.p2();
|
|
SELECT release_lock("test");
|
|
release_lock("test")
|
|
1
|
|
SELECT * FROM test.t1;
|
|
a
|
|
5
|
|
SELECT * FROM test.t1;
|
|
a
|
|
5
|
|
DROP TABLE IF EXISTS test.t1;
|
|
CREATE TABLE test.t1(a INT,PRIMARY KEY(a))ENGINE=NDBCLUSTER;
|
|
CALL test.p2();
|
|
CALL test.p1();
|
|
get_lock("test", 100)
|
|
0
|
|
SELECT * FROM test.t1;
|
|
a
|
|
8
|
|
SELECT * FROM test.t1;
|
|
a
|
|
8
|
|
DROP PROCEDURE IF EXISTS test.p1;
|
|
DROP PROCEDURE IF EXISTS test.p2;
|
|
DROP TABLE IF EXISTS test.t1;
|