Skip to content

Commit 9656026

Browse files
author
Jon Olav Hauglid
committed
Followup to Bug#45225 Locking: hang if drop table with no timeout
This patch removes the unused server variable "table_lock_wait_timeout".
1 parent 68710e2 commit 9656026

File tree

9 files changed

+3
-293
lines changed

9 files changed

+3
-293
lines changed

include/thr_lock.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,6 @@ enum enum_thr_lock_result { THR_LOCK_SUCCESS= 0, THR_LOCK_ABORTED= 1,
8383

8484

8585
extern ulong max_write_lock_count;
86-
extern ulong table_lock_wait_timeout;
8786
extern my_bool thr_lock_inited;
8887
extern enum thr_lock_type thr_upgraded_concurrent_insert_lock;
8988

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

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -717,10 +717,6 @@ The following options may be given as the first argument:
717717
--table-cache=# Deprecated; use --table-open-cache instead.
718718
--table-definition-cache=#
719719
The number of cached table definitions
720-
--table-lock-wait-timeout=#
721-
Timeout in seconds to wait for a table level lock before
722-
returning an error. Used only if the connection has
723-
active cursors
724720
--table-open-cache=#
725721
The number of cached open tables
726722
--tc-heuristic-recover=name
@@ -983,7 +979,6 @@ sync-relay-log-info 0
983979
sysdate-is-now FALSE
984980
table-cache 400
985981
table-definition-cache 400
986-
table-lock-wait-timeout 50
987982
table-open-cache 400
988983
tc-heuristic-recover COMMIT
989984
thread-cache-size 0

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

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -721,10 +721,6 @@ The following options may be given as the first argument:
721721
--table-cache=# Deprecated; use --table-open-cache instead.
722722
--table-definition-cache=#
723723
The number of cached table definitions
724-
--table-lock-wait-timeout=#
725-
Timeout in seconds to wait for a table level lock before
726-
returning an error. Used only if the connection has
727-
active cursors
728724
--table-open-cache=#
729725
The number of cached open tables
730726
--tc-heuristic-recover=name
@@ -989,7 +985,6 @@ sync-relay-log-info 0
989985
sysdate-is-now FALSE
990986
table-cache 400
991987
table-definition-cache 400
992-
table-lock-wait-timeout 50
993988
table-open-cache 400
994989
tc-heuristic-recover COMMIT
995990
thread-cache-size 0

mysql-test/r/variables.result

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1066,11 +1066,9 @@ set global default_storage_engine =@my_storage_engine;
10661066
set global thread_cache_size =@my_thread_cache_size;
10671067
set global max_allowed_packet =@my_max_allowed_packet;
10681068
set global join_buffer_size =@my_join_buffer_size;
1069-
show global variables where Variable_name='table_definition_cache' or
1070-
Variable_name='table_lock_wait_timeout';
1069+
show global variables where Variable_name='table_definition_cache';
10711070
Variable_name Value
10721071
table_definition_cache #
1073-
table_lock_wait_timeout #
10741072

10751073
# --
10761074
# -- Bug#34820: log_output can be set to illegal value.

mysql-test/suite/sys_vars/r/table_lock_wait_timeout_basic.result

Lines changed: 0 additions & 98 deletions
This file was deleted.

mysql-test/suite/sys_vars/t/table_lock_wait_timeout_basic.test

Lines changed: 0 additions & 171 deletions
This file was deleted.

mysql-test/t/variables.test

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -830,8 +830,8 @@ set global join_buffer_size =@my_join_buffer_size;
830830
# Bug#28580 Repeatation of status variables
831831
#
832832
--replace_column 2 #
833-
show global variables where Variable_name='table_definition_cache' or
834-
Variable_name='table_lock_wait_timeout';
833+
show global variables where Variable_name='table_definition_cache';
834+
# Note: table_lock_wait_timeout no longer exists. See bug#45225.
835835

836836
###########################################################################
837837

mysys/thr_lock.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,6 @@ multiple read locks.
8383

8484
my_bool thr_lock_inited=0;
8585
ulong locks_immediate = 0L, locks_waited = 0L;
86-
ulong table_lock_wait_timeout;
8786
enum thr_lock_type thr_upgraded_concurrent_insert_lock = TL_WRITE;
8887

8988
/* The following constants are only for debug output */

sql/sys_vars.cc

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1944,13 +1944,6 @@ static Sys_var_ulong Sys_table_cache_size(
19441944
VALID_RANGE(1, 512*1024), DEFAULT(TABLE_OPEN_CACHE_DEFAULT),
19451945
BLOCK_SIZE(1));
19461946

1947-
static Sys_var_ulong Sys_table_lock_wait_timeout(
1948-
"table_lock_wait_timeout",
1949-
"Timeout in seconds to wait for a table level lock before returning an "
1950-
"error. Used only if the connection has active cursors",
1951-
GLOBAL_VAR(table_lock_wait_timeout), CMD_LINE(REQUIRED_ARG),
1952-
VALID_RANGE(1, 1024*1024*1024), DEFAULT(50), BLOCK_SIZE(1));
1953-
19541947
static Sys_var_ulong Sys_thread_cache_size(
19551948
"thread_cache_size",
19561949
"How many threads we should keep in a cache for reuse",

0 commit comments

Comments
 (0)