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
10eff9c8
Commit
10eff9c8
authored
Aug 04, 2023
by
Yuchen Pei
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
MDEV-31524 Post-merge fixup
parent
8e8c020f
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
13 additions
and
60 deletions
+13
-60
storage/spider/ha_spider.cc
storage/spider/ha_spider.cc
+3
-6
storage/spider/mysql-test/spider/bugfix/r/sql_mode_mariadb.result
...spider/mysql-test/spider/bugfix/r/sql_mode_mariadb.result
+1
-1
storage/spider/mysql-test/spider/bugfix/r/sql_mode_mysql.result
...e/spider/mysql-test/spider/bugfix/r/sql_mode_mysql.result
+1
-1
storage/spider/spd_param.cc
storage/spider/spd_param.cc
+8
-48
storage/spider/spd_table.cc
storage/spider/spd_table.cc
+0
-4
No files found.
storage/spider/ha_spider.cc
View file @
10eff9c8
...
...
@@ -564,12 +564,9 @@ int ha_spider::open(
wide_handler
->
sql_command
=
pt_clone_source_handler
->
wide_handler
->
sql_command
;
}
}
else
{
if
(
share
->
semi_table_lock
)
{
wide_handler
->
semi_table_lock
=
TRUE
;
}
}
}
else
wide_handler
->
semi_table_lock
=
spider_param_semi_table_lock
(
thd
,
share
->
semi_table_lock
);
#ifdef HA_CAN_BULK_ACCESS
external_lock_cnt
=
0
;
#endif
...
...
storage/spider/mysql-test/spider/bugfix/r/sql_mode_mariadb.result
View file @
10eff9c8
...
...
@@ -50,7 +50,7 @@ pkey
connection child2_1;
SELECT argument FROM mysql.general_log WHERE argument LIKE '%sql_mode%';
argument
set session transaction isolation level repeatable read;set session autocommit = 1;set session sql_log_off = 0;set session wait_timeout = 604800;set session sql_mode = 'real_as_float,ignore_bad_table_options,no_unsigned_subtraction,no_dir_in_create,no_auto_value_on_zero,strict_trans_tables,strict_all_tables,no_zero_in_date,no_zero_date,allow_invalid_dates,error_for_division_by_zero,no_auto_create_user,high_not_precedence,no_engine_substitution,pad_char_to_full_length,empty_string_is_null,simultaneous_assignment,time_round_fractional';set session time_zone = '+00:00';set @`spider_lc_./auto_test_remote/tbl_a` = '-xxxxxxxxxxxx-xxxxx-./auto_test_local/tbl_a-'
set session transaction isolation level repeatable read;set session autocommit = 1;set session sql_log_off = 0;set session wait_timeout = 604800;set session sql_mode = 'real_as_float,ignore_bad_table_options,no_unsigned_subtraction,no_dir_in_create,no_auto_value_on_zero,strict_trans_tables,strict_all_tables,no_zero_in_date,no_zero_date,allow_invalid_dates,error_for_division_by_zero,no_auto_create_user,high_not_precedence,no_engine_substitution,pad_char_to_full_length,empty_string_is_null,simultaneous_assignment,time_round_fractional';set session time_zone = '+00:00';set @`spider_lc_./auto_test_remote/tbl_a` = '-xxxxxxxxxxxx-xxxxx-./auto_test_local/tbl_a-'
;start transaction
SELECT argument FROM mysql.general_log WHERE argument LIKE '%sql_mode%'
SELECT pkey FROM tbl_a ORDER BY pkey;
pkey
...
...
storage/spider/mysql-test/spider/bugfix/r/sql_mode_mysql.result
View file @
10eff9c8
...
...
@@ -50,7 +50,7 @@ pkey
connection child2_1;
SELECT argument FROM mysql.general_log WHERE argument LIKE '%sql_mode%';
argument
set session transaction isolation level repeatable read;set session autocommit = 1;set session sql_log_off = 0;set session wait_timeout = 604800;set session sql_mode = 'real_as_float,ignore_bad_table_options,no_unsigned_subtraction,no_dir_in_create,no_auto_value_on_zero,strict_trans_tables,strict_all_tables,no_zero_in_date,no_zero_date,allow_invalid_dates,error_for_division_by_zero,no_auto_create_user,high_not_precedence,no_engine_substitution,pad_char_to_full_length';set session time_zone = '+00:00';set @`spider_lc_./auto_test_remote/tbl_a` = '-xxxxxxxxxxxx-xxxxx-./auto_test_local/tbl_a-'
set session transaction isolation level repeatable read;set session autocommit = 1;set session sql_log_off = 0;set session wait_timeout = 604800;set session sql_mode = 'real_as_float,ignore_bad_table_options,no_unsigned_subtraction,no_dir_in_create,no_auto_value_on_zero,strict_trans_tables,strict_all_tables,no_zero_in_date,no_zero_date,allow_invalid_dates,error_for_division_by_zero,no_auto_create_user,high_not_precedence,no_engine_substitution,pad_char_to_full_length';set session time_zone = '+00:00';set @`spider_lc_./auto_test_remote/tbl_a` = '-xxxxxxxxxxxx-xxxxx-./auto_test_local/tbl_a-'
;start transaction
SELECT argument FROM mysql.general_log WHERE argument LIKE '%sql_mode%'
SELECT pkey FROM tbl_a ORDER BY pkey;
pkey
...
...
storage/spider/spd_param.cc
View file @
10eff9c8
...
...
@@ -945,14 +945,6 @@ static MYSQL_THDVAR_INT(
SPIDER_THDVAR_OVERRIDE_VALUE_FUNC
(
int
,
buffer_size
)
/*
Notes on merge conflicts (remove after merging):
10.5: 48faa20db848012e2187a09e05aba832078cb82e
10.6: 51ff9eddf7c0aaf1e022fcb3b48ec36835df7785
10.9: 06a61b8e453126c2de1649073f247d34e85f9702
10.10: 90cd0c156f5bb53fd058d2bbfb83f850ffae6722
10.11+: 124eb662700708f3c4b0fb77968f8b854d6bb4aa
*/
/*
-1 :fallback to default
0 :off
...
...
@@ -1577,12 +1569,7 @@ static MYSQL_THDVAR_INT(
0
/* blk */
);
double
spider_param_hs_ping_interval
(
THD
*
thd
)
{
DBUG_ENTER
(
"spider_param_hs_ping_interval"
);
DBUG_RETURN
(
THDVAR
(
thd
,
hs_ping_interval
));
}
SPIDER_THDVAR_VALUE_FUNC
(
double
,
hs_ping_interval
)
#endif
/*
...
...
@@ -2105,12 +2092,7 @@ static MYSQL_THDVAR_UINT(
0
/* blk */
);
uint
spider_param_hs_r_conn_recycle_mode
(
THD
*
thd
)
{
DBUG_ENTER
(
"spider_param_hs_r_conn_recycle_mode"
);
DBUG_RETURN
(
THDVAR
(
thd
,
hs_r_conn_recycle_mode
));
}
SPIDER_THDVAR_VALUE_FUNC
(
uint
,
hs_r_conn_recycle_mode
)
/*
0: weak
...
...
@@ -2128,12 +2110,7 @@ static MYSQL_THDVAR_UINT(
0
/* blk */
);
uint
spider_param_hs_r_conn_recycle_strict
(
THD
*
thd
)
{
DBUG_ENTER
(
"spider_param_hs_r_conn_recycle_strict"
);
DBUG_RETURN
(
THDVAR
(
thd
,
hs_r_conn_recycle_strict
));
}
SPIDER_THDVAR_VALUE_FUNC
(
uint
,
hs_r_conn_recycle_strict
)
/*
0: no recycle
...
...
@@ -2152,12 +2129,7 @@ static MYSQL_THDVAR_UINT(
0
/* blk */
);
uint
spider_param_hs_w_conn_recycle_mode
(
THD
*
thd
)
{
DBUG_ENTER
(
"spider_param_hs_w_conn_recycle_mode"
);
DBUG_RETURN
(
THDVAR
(
thd
,
hs_w_conn_recycle_mode
));
}
SPIDER_THDVAR_VALUE_FUNC
(
uint
,
hs_w_conn_recycle_mode
)
/*
0: weak
...
...
@@ -2175,12 +2147,7 @@ static MYSQL_THDVAR_UINT(
0
/* blk */
);
uint
spider_param_hs_w_conn_recycle_strict
(
THD
*
thd
)
{
DBUG_ENTER
(
"spider_param_hs_w_conn_recycle_strict"
);
DBUG_RETURN
(
THDVAR
(
thd
,
hs_w_conn_recycle_strict
));
}
SPIDER_THDVAR_VALUE_FUNC
(
uint
,
hs_w_conn_recycle_strict
)
/*
-1 :fallback to default
...
...
@@ -2838,7 +2805,7 @@ static MYSQL_THDVAR_BOOL(
SPIDER_THDVAR_VALUE_FUNC
(
bool
,
sync_sql_mode
)
/*
-1 :
use table parameter
-1 :
fallback to default
0 : do not strict
1 : do strict
*/
...
...
@@ -2848,20 +2815,13 @@ static MYSQL_THDVAR_INT(
"Use columns in select clause strictly for group by clause"
,
NULL
,
/* check */
NULL
,
/* update */
-
1
,
/* def */
1
,
/* def */
-
1
,
/* min */
1
,
/* max */
0
/* blk */
);
int
spider_param_strict_group_by
(
THD
*
thd
,
int
strict_group_by
)
{
DBUG_ENTER
(
"spider_param_strict_group_by"
);
DBUG_RETURN
(
THDVAR
(
thd
,
strict_group_by
)
==
-
1
?
strict_group_by
:
THDVAR
(
thd
,
strict_group_by
));
}
SPIDER_THDVAR_OVERRIDE_VALUE_FUNC
(
int
,
strict_group_by
)
static
struct
st_mysql_storage_engine
spider_storage_engine
=
{
MYSQL_HANDLERTON_INTERFACE_VERSION
};
...
...
storage/spider/spd_table.cc
View file @
10eff9c8
...
...
@@ -3902,16 +3902,12 @@ int spider_set_connect_info_default(
#endif
if
(
share
->
access_balances
[
roop_count
]
==
-
1
)
share
->
access_balances
[
roop_count
]
=
100
;
if
(
share
->
strict_group_bys
[
roop_count
]
==
-
1
)
share
->
strict_group_bys
[
roop_count
]
=
1
;
}
if
(
share
->
query_cache
==
-
1
)
share
->
query_cache
=
0
;
if
(
share
->
query_cache_sync
==
-
1
)
share
->
query_cache_sync
=
0
;
if
(
share
->
buffer_size
==
-
1
)
share
->
buffer_size
=
16000
;
if
(
share
->
scan_rate
==
-
1
)
share
->
scan_rate
=
1
;
if
(
share
->
read_rate
==
-
1
)
...
...
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