Debian Codegraph @

mysql-test/suite/binlog/t/binlog_reset_master.test

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