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
e1b9ab19
Commit
e1b9ab19
authored
Jul 20, 2023
by
Nikita Malyavin
Committed by
Sergei Golubchik
Aug 15, 2023
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix key detection on replica with extra columns
parent
70491fb0
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
sql/log_event_server.cc
sql/log_event_server.cc
+4
-4
No files found.
sql/log_event_server.cc
View file @
e1b9ab19
...
...
@@ -7173,12 +7173,12 @@ uint Rows_log_event::find_key_parts(const KEY *key) const
if
(
!
online_alter
)
{
if
(
m_cols
.
n_bits
>=
m_table
->
s
->
fields
)
if
(
m_cols
.
n_bits
>=
m_table
->
s
->
fields
)
// replicated more than slave has
return
key
->
user_defined_key_parts
;
if
(
m_table
->
s
->
virtual_fields
+
m_table
->
s
->
stored_fields
==
0
)
if
(
m_table
->
s
->
virtual_fields
==
0
)
{
for
(
p
=
0
;
p
<
key
->
user_defined_key_parts
;
p
++
)
if
(
key
->
key_part
[
p
].
fieldnr
>
m_cols
.
n_bits
)
if
(
key
->
key_part
[
p
].
fieldnr
>
m_cols
.
n_bits
)
// extra
break
;
return
p
;
}
...
...
@@ -7244,7 +7244,7 @@ int Rows_log_event::find_key(const rpl_group_info *rgi)
if
(
tl
->
m_online_alter_copy_fields
||
(
m_cols
.
n_bits
<
m_table
->
s
->
fields
&&
m_table
->
s
->
virtual_fields
+
m_table
->
s
->
stored_fields
))
m_table
->
s
->
virtual_fields
))
{
const
uchar
*
curr_row_end
=
m_curr_row_end
;
Check_level_instant_set
clis
(
m_table
->
in_use
,
CHECK_FIELD_IGNORE
);
...
...
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