Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
MDEV-18184 Do not copy temporary files (prefixed with #sql-) to backup
- Loading branch information
Showing
1 changed file
with
12 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -2392,6 +2392,18 @@ check_if_skip_table( | ||
| const char *ptr; | ||
| char *eptr; | ||
|
|
||
|
|
||
| dbname = NULL; | ||
| tbname = name; | ||
| while ((ptr = strchr(tbname, '/')) != NULL) { | ||
| dbname = tbname; | ||
| tbname = ptr + 1; | ||
| } | ||
|
|
||
| if (strncmp(tbname, "#sql",4) == 0) { | ||
This comment has been minimized.
Sorry, something went wrong.
This comment has been minimized.
Sorry, something went wrong.
vaintroub
Author
Member
|
||
| return TRUE; | ||
| } | ||
|
|
||
| if (regex_exclude_list.empty() && | ||
| regex_include_list.empty() && | ||
| tables_include_hash == NULL && | ||
| @@ -2401,13 +2413,6 @@ check_if_skip_table( | ||
| return(FALSE); | ||
| } | ||
|
|
||
| dbname = NULL; | ||
| tbname = name; | ||
| while ((ptr = strchr(tbname, '/')) != NULL) { | ||
| dbname = tbname; | ||
| tbname = ptr + 1; | ||
| } | ||
|
|
||
| if (dbname == NULL) { | ||
| return(FALSE); | ||
| } | ||
It has a define in https://github.com/MariaDB/server/blob/10.4/sql/table.h#L67