Skip to content
Permalink
Browse files
MDEV-18184 Do not copy temporary files (prefixed with #sql-) to backup
  • Loading branch information
vaintroub committed Jan 14, 2019
1 parent c6b2b74 commit 24bc8ed
Showing 1 changed file with 12 additions and 7 deletions.
@@ -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.

Copy link
@kevgs

This comment has been minimized.

Copy link
@vaintroub

vaintroub Jan 14, 2019

Author Member

this define is not used by Innodb, see TEMP_FILE_PREFIX_INNODB :)

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);
}

0 comments on commit 24bc8ed

Please sign in to comment.