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
6ecc90ae
Commit
6ecc90ae
authored
Nov 07, 2022
by
Sergei Golubchik
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
set table->pos_in_table_list in online alter
parent
e72ed758
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
1 deletion
+4
-1
sql/sql_table.cc
sql/sql_table.cc
+4
-1
No files found.
sql/sql_table.cc
View file @
6ecc90ae
...
...
@@ -11972,12 +11972,14 @@ copy_data_between_tables(THD *thd, TABLE *from, TABLE *to,
rpl_group_info
rgi
(
&
rli
);
RPL_TABLE_LIST
rpl_table
(
to
,
TL_WRITE
,
from
,
table_event
.
get_table_def
(),
copy
,
copy_end
);
Cache_flip_event_log
*
binlog
=
from
->
s
->
online_alter_binlog
;
DBUG_ASSERT
(
to
->
pos_in_table_list
==
NULL
);
to
->
pos_in_table_list
=
&
rpl_table
;
rgi
.
thd
=
thd
;
rgi
.
tables_to_lock
=
&
rpl_table
;
rgi
.
m_table_map
.
set_table
(
from
->
s
->
table_map_id
,
to
);
Cache_flip_event_log
*
binlog
=
from
->
s
->
online_alter_binlog
;
DBUG_ASSERT
(
binlog
->
is_open
());
rli
.
relay_log
.
description_event_for_exec
=
...
...
@@ -12010,6 +12012,7 @@ copy_data_between_tables(THD *thd, TABLE *from, TABLE *to,
}
if
(
error
)
from
->
s
->
tdc
->
flush_unused
(
1
);
// to free the binlog
to
->
pos_in_table_list
=
NULL
;
// Safety
}
else
if
(
online
)
// error was on copy stage
{
...
...
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