File tree Expand file tree Collapse file tree 6 files changed +4
-27
lines changed Expand file tree Collapse file tree 6 files changed +4
-27
lines changed Original file line number Diff line number Diff line change @@ -25,19 +25,6 @@ sync_slave_with_master;
2525connection slave ;
2626select * from t1 ;
2727
28- let $sql_thread= ` select id from information_schema.processlist where state
29- like 'Slave has read all relay log; waiting for the slave I/O thread%'` ;
30- let $worker_thread= ` select id from information_schema.processlist where state
31- like 'Waiting for%'` ;
32-
33- -- echo # set slave thread's lock_wait_timeout to a small value
34-
35- -- replace_regex /session [0-9]*/session sql_thread/
36- -- eval set session $sql_thread lock_wait_timeout = 0.2
37-
38- -- replace_regex /session [0-9]*/session sql_thread/
39- -- eval show session $sql_thread variables like 'lock_wait_timeout'
40-
4128--echo connection slave_block
4229connection slave_block ;
4330
@@ -51,7 +38,7 @@ connection master;
5138create high_priority index idx1 on t1 (i );
5239show create table t1 ;
5340
54- # sync
41+ # sync. high_priority_lock_wait_timeout is 1 second by default
5542sync_slave_with_master ;
5643
5744--echo connection slave ;
Original file line number Diff line number Diff line change @@ -342,7 +342,7 @@ The following options may be given as the first argument:
342342 --high-priority-lock-wait-timeout=#
343343 Timeout in seconds to wait for a lock before returning an
344344 error. This timeout is specifically for high_priority
345- commands (DDLs), when a high_priority keyward is
345+ commands (DDLs), when a high_priority keyword is
346346 specified, or the high_priority_ddl variable is turned
347347 on. The argument will be treated as a decimal value with
348348 nanosecond precision.
Original file line number Diff line number Diff line change @@ -342,7 +342,7 @@ The following options may be given as the first argument:
342342 --high-priority-lock-wait-timeout=#
343343 Timeout in seconds to wait for a lock before returning an
344344 error. This timeout is specifically for high_priority
345- commands (DDLs), when a high_priority keyward is
345+ commands (DDLs), when a high_priority keyword is
346346 specified, or the high_priority_ddl variable is turned
347347 on. The argument will be treated as a decimal value with
348348 nanosecond precision.
Original file line number Diff line number Diff line change 18181
19192
20203
21- # set slave thread's lock_wait_timeout to a small value
22- set session sql_thread lock_wait_timeout = 0.2;
23- show session sql_thread variables like 'lock_wait_timeout';
24- Variable_name Value
25- lock_wait_timeout 0.200000
2621connection slave_block
2722lock tables t1 read;
2823connection master;
Original file line number Diff line number Diff line change 18181
19192
20203
21- # set slave thread's lock_wait_timeout to a small value
22- set session sql_thread lock_wait_timeout = 0.2;
23- show session sql_thread variables like 'lock_wait_timeout';
24- Variable_name Value
25- lock_wait_timeout 0.200000
2621connection slave_block
2722lock tables t1 read;
2823connection master;
Original file line number Diff line number Diff line change @@ -1910,7 +1910,7 @@ static Sys_var_double Sys_high_priority_lock_wait_timeout(
19101910 "high_priority_lock_wait_timeout",
19111911 "Timeout in seconds to wait for a lock before returning an error. "
19121912 "This timeout is specifically for high_priority commands (DDLs), "
1913- "when a high_priority keyward is specified, or the high_priority_ddl "
1913+ "when a high_priority keyword is specified, or the high_priority_ddl "
19141914 "variable is turned on. "
19151915 "The argument will be treated as a decimal value with nanosecond "
19161916 "precision.",
You can’t perform that action at this time.
0 commit comments