-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
MDEV-28009 Deprecate spider_table_crd_thread_count and spider_table_s…
…ts_thread_count These variables/parameters have the default read-only value of 1, and the only way to change them is through a command line flag together with a command line flag loading spider. After this change, the flag will have no effect.
- Loading branch information
1 parent
5bbda97
commit fe3432b
Showing
5 changed files
with
42 additions
and
61 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
FOUND 1 /\[Warning\] .*spider-table-sts-thread-count is deprecated and will be removed in a future release/ in mysqld.1.1.err | ||
select @@spider_table_sts_thread_count; | ||
@@spider_table_sts_thread_count | ||
5 | ||
set spider_table_sts_thread_count=8; | ||
ERROR HY000: Variable 'spider_table_sts_thread_count' is a read only variable |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
--plugin-load-add=ha_spider | ||
--spider-table-sts-thread-count=5 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
# If log_warnings is lower than 2 then the deprecation warnings will | ||
# not be logged | ||
if (`select @@log_warnings < 2`) | ||
{ | ||
skip Test requires log_warnings > 1; | ||
} | ||
--let $group= `select regexp_replace(@@tmpdir, '^.*/','')` | ||
let SEARCH_PATTERN= \[Warning\] .*spider-table-sts-thread-count is deprecated and will be removed in a future release; | ||
let SEARCH_FILE= $MYSQLTEST_VARDIR/log/$group.err; | ||
--source include/search_pattern_in_file.inc | ||
select @@spider_table_sts_thread_count; | ||
--error ER_INCORRECT_GLOBAL_LOCAL_VAR | ||
set spider_table_sts_thread_count=8; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters