Skip to content

Commit 870186b

Browse files
author
Staale Deraas
committed
BUG#20135780 DEPRECATED NAME FOR TABLE_OPEN_CACHE IN WARNING MESSAGE
Corrected the variable name in a message from table_cache to table_open_cache. This was changed in MySQL 5.1.3. The patch is based on a contribution from Daniël van Eeden.
1 parent 8e3680c commit 870186b

5 files changed

Lines changed: 8 additions & 8 deletions

File tree

mysql-test/include/mtr_warnings.sql

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
-- Copyright (c) 2008, 2013, Oracle and/or its affiliates. All rights reserved.
1+
-- Copyright (c) 2008, 2015, Oracle and/or its affiliates. All rights reserved.
22
--
33
-- This program is free software; you can redistribute it and/or modify
44
-- it under the terms of the GNU General Public License as published by
@@ -243,7 +243,7 @@ INSERT INTO global_suppressions VALUES
243243

244244
("Changed limits: max_open_files: *"),
245245
("Changed limits: max_connections: *"),
246-
("Changed limits: table_cache: *"),
246+
("Changed limits: table_open_cache: *"),
247247
("Could not increase number of max_open_files to more than *"),
248248

249249
("THE_LAST_SUPPRESSION")||

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -506,8 +506,8 @@ The following options may be given as the first argument:
506506
If this is not 0, then mysqld will use this value to
507507
reserve file descriptors to use with setrlimit(). If this
508508
value is 0 then mysqld will reserve max_connections*5 or
509-
max_connections + table_cache*2 (whichever is larger)
510-
number of file descriptors
509+
max_connections + table_open_cache*2 (whichever is
510+
larger) number of file descriptors
511511
--optimizer-prune-level=#
512512
Controls the heuristic(s) applied during query
513513
optimization to prune less-promising partial plans from

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -506,8 +506,8 @@ The following options may be given as the first argument:
506506
If this is not 0, then mysqld will use this value to
507507
reserve file descriptors to use with setrlimit(). If this
508508
value is 0 then mysqld will reserve max_connections*5 or
509-
max_connections + table_cache*2 (whichever is larger)
510-
number of file descriptors
509+
max_connections + table_open_cache*2 (whichever is
510+
larger) number of file descriptors
511511
--optimizer-prune-level=#
512512
Controls the heuristic(s) applied during query
513513
optimization to prune less-promising partial plans from

sql/mysqld.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6940,7 +6940,7 @@ void adjust_table_cache_size(ulong requested_open_files)
69406940
char msg[1024];
69416941

69426942
snprintf(msg, sizeof(msg),
6943-
"Changed limits: table_cache: %lu (requested %lu)",
6943+
"Changed limits: table_open_cache: %lu (requested %lu)",
69446944
limit, table_cache_size);
69456945
buffered_logs.buffer(WARNING_LEVEL, msg);
69466946

sql/sys_vars.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2042,7 +2042,7 @@ static Sys_var_ulong Sys_open_files_limit(
20422042
"open_files_limit",
20432043
"If this is not 0, then mysqld will use this value to reserve file "
20442044
"descriptors to use with setrlimit(). If this value is 0 then mysqld "
2045-
"will reserve max_connections*5 or max_connections + table_cache*2 "
2045+
"will reserve max_connections*5 or max_connections + table_open_cache*2 "
20462046
"(whichever is larger) number of file descriptors",
20472047
READ_ONLY GLOBAL_VAR(open_files_limit), CMD_LINE(REQUIRED_ARG),
20482048
VALID_RANGE(0, OS_FILE_LIMIT), DEFAULT(0), BLOCK_SIZE(1),

0 commit comments

Comments
 (0)