Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
M
MariaDB
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
nexedi
MariaDB
Commits
48f3cf75
Commit
48f3cf75
authored
Jul 25, 2022
by
Yusuke Abe
Committed by
GitHub
Jul 25, 2022
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
MDEV-28795 Deprecate spider_bka_table_name_type
parent
c3ddffe2
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
27 additions
and
1 deletion
+27
-1
storage/spider/mysql-test/spider/r/variable_deprecation.result
...ge/spider/mysql-test/spider/r/variable_deprecation.result
+15
-0
storage/spider/mysql-test/spider/t/variable_deprecation.test
storage/spider/mysql-test/spider/t/variable_deprecation.test
+9
-0
storage/spider/spd_param.cc
storage/spider/spd_param.cc
+1
-1
storage/spider/spd_table.cc
storage/spider/spd_table.cc
+2
-0
No files found.
storage/spider/mysql-test/spider/r/variable_deprecation.result
View file @
48f3cf75
...
...
@@ -240,6 +240,21 @@ Warnings:
Warning 1287 The table parameter 'semi_table_lock_connection' is deprecated and will be removed in a future release
DROP TABLE tbl_a;
DROP TABLE tbl_b;
# MDEV-28795 Deprecate spider_bka_table_name_type
SET spider_bka_table_name_type = 1;
Warnings:
Warning 1287 '@@spider_bka_table_name_type' is deprecated and will be removed in a future release
SHOW VARIABLES LIKE "spider_bka_table_name_type";
Variable_name Value
spider_bka_table_name_type 1
CREATE TABLE tbl_a (a INT) ENGINE=Spider COMMENT='btt "1"';
Warnings:
Warning 1287 The table parameter 'btt' is deprecated and will be removed in a future release
CREATE TABLE tbl_b (a INT) ENGINE=Spider COMMENT='bka_table_name_type "1"';
Warnings:
Warning 1287 The table parameter 'bka_table_name_type' is deprecated and will be removed in a future release
DROP TABLE tbl_a;
DROP TABLE tbl_b;
DROP DATABASE auto_test_local;
for master_1
for child2
...
...
storage/spider/mysql-test/spider/t/variable_deprecation.test
View file @
48f3cf75
...
...
@@ -143,6 +143,15 @@ eval CREATE TABLE tbl_b (a INT) $MASTER_1_ENGINE COMMENT='semi_table_lock_connec
DROP
TABLE
tbl_a
;
DROP
TABLE
tbl_b
;
--
echo
# MDEV-28795 Deprecate spider_bka_table_name_type
SET
spider_bka_table_name_type
=
1
;
SHOW
VARIABLES
LIKE
"spider_bka_table_name_type"
;
eval
CREATE
TABLE
tbl_a
(
a
INT
)
$MASTER_1_ENGINE
COMMENT
=
'btt "1"'
;
eval
CREATE
TABLE
tbl_b
(
a
INT
)
$MASTER_1_ENGINE
COMMENT
=
'bka_table_name_type "1"'
;
DROP
TABLE
tbl_a
;
DROP
TABLE
tbl_b
;
DROP
DATABASE
auto_test_local
;
--
disable_query_log
...
...
storage/spider/spd_param.cc
View file @
48f3cf75
...
...
@@ -3184,7 +3184,7 @@ int spider_param_delete_all_rows_type(
*/
static
MYSQL_THDVAR_INT
(
bka_table_name_type
,
/* name */
PLUGIN_VAR_RQCMDARG
,
/* opt */
PLUGIN_VAR_RQCMDARG
|
PLUGIN_VAR_DEPRECATED
,
/* opt */
"The type of temporary table name for bka"
,
/* comment */
NULL
,
/* check */
spider_var_deprecated_int
,
/* update */
...
...
storage/spider/spd_table.cc
View file @
48f3cf75
...
...
@@ -2339,6 +2339,7 @@ int spider_parse_connect_info(
SPIDER_PARAM_STR
(
"bke"
,
bka_engine
);
SPIDER_PARAM_INT_WITH_MAX
(
"bkm"
,
bka_mode
,
0
,
2
);
SPIDER_PARAM_INT
(
"bsz"
,
bulk_size
,
0
);
SPIDER_PARAM_DEPRECATED_WARNING
(
"btt"
);
SPIDER_PARAM_LONG_LIST_WITH_MAX
(
"btt"
,
bka_table_name_types
,
0
,
1
);
SPIDER_PARAM_INT_WITH_MAX
(
"bum"
,
bulk_update_mode
,
0
,
2
);
...
...
@@ -2700,6 +2701,7 @@ int spider_parse_connect_info(
#if defined(HS_HAS_SQLCOM) && defined(HAVE_HANDLERSOCKET)
SPIDER_PARAM_LONGLONG
(
"hs_result_free_size"
,
hs_result_free_size
,
0
);
#endif
SPIDER_PARAM_DEPRECATED_WARNING
(
"bka_table_name_type"
);
SPIDER_PARAM_LONG_LIST_WITH_MAX
(
"bka_table_name_type"
,
bka_table_name_types
,
0
,
1
);
SPIDER_PARAM_INT_WITH_MAX
(
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment