Skip to content

Commit 7eb47aa

Browse files
committed
Merge 10.9 into 10.10
2 parents 4652c17 + f1ac830 commit 7eb47aa

File tree

2 files changed

+9
-13
lines changed

2 files changed

+9
-13
lines changed

mysql-test/suite/sys_vars/r/sysvars_star.result

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ VARIABLE_NAME PLUGIN_MATURITY
6060
SESSION_VALUE NULL
6161
GLOBAL_VALUE alpha
6262
GLOBAL_VALUE_ORIGIN CONFIG
63-
DEFAULT_VALUE experimental
63+
DEFAULT_VALUE beta
6464
VARIABLE_SCOPE GLOBAL
6565
VARIABLE_TYPE ENUM
6666
VARIABLE_COMMENT The lowest desirable plugin maturity. Plugins less mature than that will not be installed or loaded

sql/rpl_gtid.cc

Lines changed: 8 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/* Copyright (c) 2013, Kristian Nielsen and MariaDB Services Ab.
2-
Copyright (c) 2020, MariaDB Corporation.
2+
Copyright (c) 2020, 2022, MariaDB Corporation.
33
44
This program is free software; you can redistribute it and/or modify
55
it under the terms of the GNU General Public License as published by
@@ -3603,41 +3603,34 @@ int Id_delegating_gtid_event_filter<T>::set_id_restrictions(
36033603

36043604
size_t id_ctr;
36053605
int err;
3606-
Gtid_event_filter::gtid_event_filter_type filter_type;
36073606
const char *filter_name, *opposite_filter_name;
36083607
Gtid_event_filter *(*construct_filter)(void);
36093608
Gtid_event_filter *(*construct_default_filter)(void);
36103609

3611-
DBUG_ASSERT(mode > id_restriction_mode::MODE_NOT_SET);
3612-
36133610
/*
36143611
Set up variables which help this filter either be in whitelist or blacklist
36153612
mode
36163613
*/
36173614
if (mode == Gtid_event_filter::id_restriction_mode::WHITELIST_MODE)
36183615
{
3619-
filter_type= Gtid_event_filter::ACCEPT_ALL_GTID_FILTER_TYPE;
36203616
filter_name= WHITELIST_NAME;
36213617
opposite_filter_name= BLACKLIST_NAME;
36223618
construct_filter=
36233619
create_event_filter<Accept_all_gtid_filter>;
36243620
construct_default_filter=
36253621
create_event_filter<Reject_all_gtid_filter>;
36263622
}
3627-
else if (mode == Gtid_event_filter::id_restriction_mode::BLACKLIST_MODE)
3623+
else
36283624
{
3629-
filter_type= Gtid_event_filter::REJECT_ALL_GTID_FILTER_TYPE;
3625+
DBUG_ASSERT(mode ==
3626+
Gtid_event_filter::id_restriction_mode::BLACKLIST_MODE);
36303627
filter_name= BLACKLIST_NAME;
36313628
opposite_filter_name= WHITELIST_NAME;
36323629
construct_filter=
36333630
create_event_filter<Reject_all_gtid_filter>;
36343631
construct_default_filter=
36353632
create_event_filter<Accept_all_gtid_filter>;
36363633
}
3637-
else
3638-
{
3639-
DBUG_ASSERT(0);
3640-
}
36413634

36423635
if (m_id_restriction_mode !=
36433636
Gtid_event_filter::id_restriction_mode::MODE_NOT_SET)
@@ -3683,7 +3676,10 @@ int Id_delegating_gtid_event_filter<T>::set_id_restrictions(
36833676
else
36843677
{
36853678
DBUG_ASSERT(map_element->filter->get_filter_type() ==
3686-
filter_type);
3679+
(mode ==
3680+
Gtid_event_filter::id_restriction_mode::WHITELIST_MODE)
3681+
? Gtid_event_filter::ACCEPT_ALL_GTID_FILTER_TYPE
3682+
: Gtid_event_filter::REJECT_ALL_GTID_FILTER_TYPE);
36873683
}
36883684
}
36893685

0 commit comments

Comments
 (0)