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;
25
25
connection slave ;
26
26
select * from t1 ;
27
27
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
-
41
28
--echo connection slave_block
42
29
connection slave_block ;
43
30
@@ -51,7 +38,7 @@ connection master;
51
38
create high_priority index idx1 on t1 (i );
52
39
show create table t1 ;
53
40
54
- # sync
41
+ # sync. high_priority_lock_wait_timeout is 1 second by default
55
42
sync_slave_with_master ;
56
43
57
44
--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:
342
342
--high-priority-lock-wait-timeout=#
343
343
Timeout in seconds to wait for a lock before returning an
344
344
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
346
346
specified, or the high_priority_ddl variable is turned
347
347
on. The argument will be treated as a decimal value with
348
348
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:
342
342
--high-priority-lock-wait-timeout=#
343
343
Timeout in seconds to wait for a lock before returning an
344
344
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
346
346
specified, or the high_priority_ddl variable is turned
347
347
on. The argument will be treated as a decimal value with
348
348
nanosecond precision.
Original file line number Diff line number Diff line change 18
18
1
19
19
2
20
20
3
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
26
21
connection slave_block
27
22
lock tables t1 read;
28
23
connection master;
Original file line number Diff line number Diff line change 18
18
1
19
19
2
20
20
3
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
26
21
connection slave_block
27
22
lock tables t1 read;
28
23
connection 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(
1910
1910
"high_priority_lock_wait_timeout",
1911
1911
"Timeout in seconds to wait for a lock before returning an error. "
1912
1912
"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 "
1914
1914
"variable is turned on. "
1915
1915
"The argument will be treated as a decimal value with nanosecond "
1916
1916
"precision.",
You can’t perform that action at this time.
0 commit comments