mirror of
https://github.com/MariaDB/server.git
synced 2025-07-30 16:24:05 +03:00
replicated get_lock() properly
sql/item_func.cc: log all lock releases to binary log for safe handling of get_lock() in updates
This commit is contained in:
16
mysql-test/t/rpl_get_lock.test
Normal file
16
mysql-test/t/rpl_get_lock.test
Normal file
@ -0,0 +1,16 @@
|
||||
source include/master-slave.inc;
|
||||
connection master;
|
||||
create table t1(n int);
|
||||
insert into t1 values(get_lock("lock",2));
|
||||
dirty_close master;
|
||||
connection master1;
|
||||
save_master_pos;
|
||||
connection slave;
|
||||
sync_with_master;
|
||||
select get_lock("lock",3);
|
||||
select * from t1;
|
||||
connection master1;
|
||||
drop table t1;
|
||||
save_master_pos;
|
||||
connection slave;
|
||||
sync_with_master;
|
Reference in New Issue
Block a user