mirror of
https://github.com/MariaDB/server.git
synced 2025-01-16 12:02:42 +01:00
MDEV-28297 Deprecate spider_internal_offset
Deprecate the server variable spider_internal_offset and the corresponding table parameters "ios" and "internal_offset". We believe this variable is not much use to users, therefore decided to deprecate it. Reviewed-by: Nayuta Yanagisawa <nayuta.yanagisawa@hey.com>
This commit is contained in:
parent
cc13ab0ffc
commit
1866fb0537
4 changed files with 26 additions and 1 deletions
|
@ -28,6 +28,21 @@ Warnings:
|
|||
Warning 1287 The table parameter 'use_handler' is deprecated and will be removed in a future release
|
||||
DROP TABLE tbl_a;
|
||||
DROP TABLE tbl_b;
|
||||
# MDEV-28297 Deprecate spider_internal_offset
|
||||
SET spider_internal_offset = 1;
|
||||
Warnings:
|
||||
Warning 1287 '@@spider_internal_offset' is deprecated and will be removed in a future release
|
||||
SHOW VARIABLES LIKE "spider_internal_offset";
|
||||
Variable_name Value
|
||||
spider_internal_offset 1
|
||||
CREATE TABLE tbl_a (a INT) ENGINE=Spider COMMENT='ios "1"';
|
||||
Warnings:
|
||||
Warning 1287 The table parameter 'ios' is deprecated and will be removed in a future release
|
||||
CREATE TABLE tbl_b (a INT) ENGINE=Spider COMMENT='internal_offset "1"';
|
||||
Warnings:
|
||||
Warning 1287 The table parameter 'internal_offset' is deprecated and will be removed in a future release
|
||||
DROP TABLE tbl_a;
|
||||
DROP TABLE tbl_b;
|
||||
# MDEV-28005 Deprecate Spider plugin variables regarding UDFs
|
||||
SET GLOBAL spider_udf_ds_bulk_insert_rows = 1;
|
||||
Warnings:
|
||||
|
|
|
@ -17,7 +17,15 @@ SET spider_use_handler = 3;
|
|||
SHOW VARIABLES LIKE "spider_use_handler";
|
||||
eval CREATE TABLE tbl_a (a INT) $MASTER_1_ENGINE COMMENT='uhd "3"';
|
||||
eval CREATE TABLE tbl_b (a INT) $MASTER_1_ENGINE COMMENT='use_handler "3"';
|
||||
DROP TABLE tbl_a;
|
||||
DROP TABLE tbl_b;
|
||||
|
||||
--echo # MDEV-28297 Deprecate spider_internal_offset
|
||||
SET spider_internal_offset = 1;
|
||||
SHOW VARIABLES LIKE "spider_internal_offset";
|
||||
|
||||
eval CREATE TABLE tbl_a (a INT) $MASTER_1_ENGINE COMMENT='ios "1"';
|
||||
eval CREATE TABLE tbl_b (a INT) $MASTER_1_ENGINE COMMENT='internal_offset "1"';
|
||||
DROP TABLE tbl_a;
|
||||
DROP TABLE tbl_b;
|
||||
|
||||
|
|
|
@ -469,7 +469,7 @@ uint spider_param_xa_register_mode(
|
|||
*/
|
||||
static MYSQL_THDVAR_LONGLONG(
|
||||
internal_offset, /* name */
|
||||
PLUGIN_VAR_RQCMDARG, /* opt */
|
||||
PLUGIN_VAR_RQCMDARG | PLUGIN_VAR_DEPRECATED, /* opt */
|
||||
"Internal offset", /* comment */
|
||||
NULL, /* check */
|
||||
spider_use_table_value_deprecated, /* update */
|
||||
|
|
|
@ -2380,6 +2380,7 @@ int spider_parse_connect_info(
|
|||
SPIDER_PARAM_INT_WITH_MAX("idl", internal_delayed, 0, 1);
|
||||
SPIDER_PARAM_DEPRECATED_WARNING("ilm");
|
||||
SPIDER_PARAM_LONGLONG("ilm", internal_limit, 0);
|
||||
SPIDER_PARAM_DEPRECATED_WARNING("ios");
|
||||
SPIDER_PARAM_LONGLONG("ios", internal_offset, 0);
|
||||
SPIDER_PARAM_INT_WITH_MAX("iom", internal_optimize, 0, 1);
|
||||
SPIDER_PARAM_INT_WITH_MAX("iol", internal_optimize_local, 0, 1);
|
||||
|
@ -2590,6 +2591,7 @@ int spider_parse_connect_info(
|
|||
error_num = connect_string_parse.print_param_error();
|
||||
goto error;
|
||||
case 15:
|
||||
SPIDER_PARAM_DEPRECATED_WARNING("internal_offset");
|
||||
SPIDER_PARAM_LONGLONG("internal_offset", internal_offset, 0);
|
||||
SPIDER_PARAM_INT_WITH_MAX("reset_sql_alloc", reset_sql_alloc, 0, 1);
|
||||
SPIDER_PARAM_INT_WITH_MAX("semi_table_lock", semi_table_lock, 0, 1);
|
||||
|
|
Loading…
Reference in a new issue