Skip to content

Commit 434d496

Browse files
tianxfacebook-github-bot
authored andcommitted
Cleanup rpl_ddl_high_priority.inc and fix a typo
Summary: Squash with D5679795. Slave thread no longer needs to set lock_wait_timeout for high_priority commands. Reviewed By: abhinav04sharma Differential Revision: D5682683 fbshipit-source-id: 06ee30b
1 parent 7e41852 commit 434d496

File tree

6 files changed

+4
-27
lines changed

6 files changed

+4
-27
lines changed

mysql-test/include/rpl_ddl_high_priority.inc

Lines changed: 1 addition & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -25,19 +25,6 @@ sync_slave_with_master;
2525
connection slave;
2626
select * 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
4229
connection slave_block;
4330

@@ -51,7 +38,7 @@ connection master;
5138
create high_priority index idx1 on t1 (i);
5239
show create table t1;
5340

54-
# sync
41+
# sync. high_priority_lock_wait_timeout is 1 second by default
5542
sync_slave_with_master;
5643

5744
--echo connection slave;

mysql-test/r/mysqld--help-notwin-profiling.result

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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.

mysql-test/r/mysqld--help-notwin.result

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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.

mysql-test/suite/rocksdb_rpl/r/rpl_ddl_high_priority.result

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -18,11 +18,6 @@ i
1818
1
1919
2
2020
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
2621
connection slave_block
2722
lock tables t1 read;
2823
connection master;

mysql-test/suite/rpl/r/rpl_ddl_high_priority.result

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -18,11 +18,6 @@ i
1818
1
1919
2
2020
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
2621
connection slave_block
2722
lock tables t1 read;
2823
connection master;

sql/sys_vars.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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.",

0 commit comments

Comments
 (0)