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
91451f64
Commit
91451f64
authored
Nov 05, 2003
by
heikki@hundin.mysql.fi
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fil0fil.c:
Do renames based on space id in log replay of ibbackup
parent
48c6e184
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
6 deletions
+6
-6
innobase/fil/fil0fil.c
innobase/fil/fil0fil.c
+6
-6
No files found.
innobase/fil/fil0fil.c
View file @
91451f64
...
...
@@ -1681,7 +1681,12 @@ fil_op_log_parse_or_replay(
ut_a
(
fil_delete_tablespace
(
space_id
));
}
}
else
if
(
type
==
MLOG_FILE_RENAME
)
{
if
(
fil_get_space_id_for_table
(
name
)
==
space_id
)
{
/* We do the rename based on space id, not old file name;
this should guarantee that after the log replay each .ibd file
has the correct name for the latest log sequence number; the
proof is left as an exercise :) */
if
(
fil_tablespace_exists_in_mem
(
space_id
))
{
/* Create the database directory for the new name, if
it does not exist yet */
fil_create_directory_for_tablename
(
new_name
);
...
...
@@ -1693,11 +1698,6 @@ fil_op_log_parse_or_replay(
==
ULINT_UNDEFINED
)
{
ut_a
(
fil_rename_tablespace
(
name
,
space_id
,
new_name
));
}
else
{
fprintf
(
stderr
,
"InnoDB: Warning: in log replay cannot rename tablespace
\n
"
"InnoDB: %s with id %lu to %s, because it exists already.
\n
"
,
name
,
space_id
,
new_name
);
}
}
}
else
{
...
...
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