-
-
Notifications
You must be signed in to change notification settings - Fork 1.9k
MDEV-38041: MariaBackup fails during rollback of inplace FTS alter table #4435
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: 10.6
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -1072,7 +1072,19 @@ static void backup_file_op_fail(uint32_t space_id, int type, | |
| filename_to_spacename(name, len).c_str()); | ||
| msg("DDL tracking : delete %" PRIu32 " \"%.*s\"", | ||
| space_id, int(len), name); | ||
| error= "delete"; | ||
| if (fail && !opt_no_lock && | ||
| check_if_fts_table( | ||
| filename_to_spacename(name, len).c_str())) { | ||
|
Comment on lines
1072
to
+1077
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. |
||
| /* Ignore the FTS internal table because InnoDB does | ||
| drop intermediate table and their associative FTS | ||
|
Comment on lines
+1078
to
+1079
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I would replace "does drop" with "may drop". |
||
| internal table as a part of inplace rollback operation. | ||
| backup_set_alter_copy_lock() downgrades the | ||
| MDL_BACKUP_DDL before inplace phase of alter. | ||
| This leads to the FTS internal table being | ||
| dropped in the late phase of backup. */ | ||
|
Comment on lines
+1083
to
+1084
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This sentence feels redundant to me. |
||
| fail = false; | ||
| } | ||
| error= "delete"; | ||
| break; | ||
| default: | ||
| ut_ad(0); | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This line had been indented with TAB consistently with the rest of the function. Here the indentation is being changed without any good reason.