~vadim-tk/percona-server/flushing-algo

« back to all changes in this revision

Viewing changes to mysql-test/suite/binlog/t/binlog_reset_master.test

  • Committer: root
  • Date: 2011-10-29 01:34:40 UTC
  • Revision ID: root@hppro1.office.percona.com-20111029013440-qhnf4jk8kdjcf4e0
Initial import

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
# ==== Purpose ====
 
2
#
 
3
# Test bugs in RESET MASTER.
 
4
 
 
5
--source include/have_debug.inc
 
6
--source include/have_log_bin.inc
 
7
 
 
8
#######################################################################
 
9
# BUG#12574820: binlog.binlog_tmp_table timing out in daily and weekly trunk run
 
10
# Problem: MYSQL_BIN_LOG::reset_logs acquired LOCK_thread_count and
 
11
# LOCK_log in the wrong order. This could cause a deadlock when
 
12
# RESET MASTER was run concurrently with a disconnecting thread.
 
13
#######################################################################
 
14
 
 
15
# We use sleep, not debug_sync, because the sync point needs to be in
 
16
# the thread shut down code after the debug sync facility has been
 
17
# shut down.
 
18
--let $write_var= SET DEBUG="+d,sleep_after_lock_thread_count_before_delete_thd"; CREATE TEMPORARY TABLE test.t1 (a INT);
 
19
--let $write_to_file= GENERATE
 
20
--disable_query_log
 
21
--source include/write_var_to_file.inc
 
22
--enable_query_log
 
23
 
 
24
--exec $MYSQL < $write_to_file
 
25
RESET MASTER;
 
26
--remove_file $write_to_file