summaryrefslogtreecommitdiff
path: root/mysql-test
diff options
context:
space:
mode:
authorunknown <sasha@mysql.sashanet.com>2001-12-18 21:56:36 -0700
committerunknown <sasha@mysql.sashanet.com>2001-12-18 21:56:36 -0700
commit267e85e5e3bf7288171018fa28070b12fa88863a (patch)
tree9af06852639f8e7affcc06db7a78eeeea194c42d /mysql-test
parent634869071e4d61559eecfffdc3ab46d8928fa725 (diff)
downloadmariadb-git-267e85e5e3bf7288171018fa28070b12fa88863a.tar.gz
make replication work correctly if the master logs SELECT RELEASE_LOCK()
instead of DO RELEASE_LOCK() mysql-test/t/rpl_get_lock.test: test for SELECT RELEASE() replication bug
Diffstat (limited to 'mysql-test')
-rw-r--r--mysql-test/t/rpl_get_lock.test7
1 files changed, 3 insertions, 4 deletions
diff --git a/mysql-test/t/rpl_get_lock.test b/mysql-test/t/rpl_get_lock.test
index 8bbeeade468..3c33103e4c7 100644
--- a/mysql-test/t/rpl_get_lock.test
+++ b/mysql-test/t/rpl_get_lock.test
@@ -1,17 +1,16 @@
source include/master-slave.inc;
connection master;
create table t1(n int);
-create table t2(n int);
insert into t1 values(get_lock("lock",2));
dirty_close master;
connection master1;
select get_lock("lock",2);
select release_lock("lock");
-let $1=20000;
+let $1=2000;
while ($1)
{
- select get_lock("lock",2);
- select release_lock("lock");
+ do get_lock("lock",2);
+ do release_lock("lock");
dec $1;
}
save_master_pos;