summaryrefslogtreecommitdiff
path: root/mysql-test/t/rpl_get_lock.test
diff options
context:
space:
mode:
authorunknown <guilhem@mysql.com>2005-03-02 17:52:38 +0100
committerunknown <guilhem@mysql.com>2005-03-02 17:52:38 +0100
commite762af4c0774c3b8e84db5dc53330beda94f707d (patch)
tree8449033fea5596d634679cd3191bf73ae3883346 /mysql-test/t/rpl_get_lock.test
parent8e3e88c9992d202026f33b3bf3a2c8b857662631 (diff)
downloadmariadb-git-e762af4c0774c3b8e84db5dc53330beda94f707d.tar.gz
Last part of fix for BUG#7998 "Replication should be more clever about when to replicate RELEASE_LOCK()" + fixes after merge
mysql-test/r/drop_temp_table.result: result update mysql-test/r/mix_innodb_myisam_binlog.result: result update mysql-test/r/rpl000001.result: result update mysql-test/r/rpl_change_master.result: result update mysql-test/r/rpl_deadlock.result: result update (merge) mysql-test/t/rpl000001.test: can't rely on GET_LOCK() to do slave synchro (use table lock instead) mysql-test/t/rpl_change_master.test: changing the test as we can't use GET_LOCK() for slave synchro mysql-test/t/rpl_deadlock.test: update (merge) binlog positions mysql-test/t/rpl_get_lock.test: comment
Diffstat (limited to 'mysql-test/t/rpl_get_lock.test')
-rw-r--r--mysql-test/t/rpl_get_lock.test7
1 files changed, 7 insertions, 0 deletions
diff --git a/mysql-test/t/rpl_get_lock.test b/mysql-test/t/rpl_get_lock.test
index 5e58753e59a..847e7145be6 100644
--- a/mysql-test/t/rpl_get_lock.test
+++ b/mysql-test/t/rpl_get_lock.test
@@ -22,6 +22,13 @@ connection slave;
sync_with_master;
select get_lock("lock",3);
select * from t1;
+# There is no point in testing REPLICATIION of the IS_*_LOCK
+# functions; slave does not run with the same concurrency context as
+# master (generally in slave we can't know that on master this lock
+# was already held by another connection and so that the the
+# get_lock() we're replicating timed out on master hence returned 0,
+# or that the is_free_lock() we're playing returned 0 etc.
+# But here all we do is test these functions outside of replication.
select is_free_lock("lock"), is_used_lock("lock") = connection_id();
explain extended select is_free_lock("lock"), is_used_lock("lock");
# Check lock functions