mirror of
https://github.com/MariaDB/server.git
synced 2025-01-28 01:34:17 +01:00
Cleanup - make sure all members of table_load_params are initialized
Alexey Botchkov complains there are problems with empty curly brackets initializer in old-ish gcc(4.9) Can't verify, but making all members are initialized by default constructor is easy enough.
This commit is contained in:
parent
a5b80531fb
commit
19cea73834
1 changed files with 2 additions and 2 deletions
|
@ -81,7 +81,7 @@ struct table_load_params
|
||||||
CREATE VIEW */
|
CREATE VIEW */
|
||||||
std::string tablename; /* name of the table */
|
std::string tablename; /* name of the table */
|
||||||
std::string dbname; /* name of the database */
|
std::string dbname; /* name of the database */
|
||||||
ulonglong size; /* size of the data file */
|
ulonglong size= 0; /* size of the data file */
|
||||||
};
|
};
|
||||||
|
|
||||||
std::unordered_set<std::string> ignore_databases;
|
std::unordered_set<std::string> ignore_databases;
|
||||||
|
@ -1017,7 +1017,7 @@ static void scan_backup_dir(const char *dir,
|
||||||
}
|
}
|
||||||
for (size_t j= 0; j < dir_info2->number_of_files; j++)
|
for (size_t j= 0; j < dir_info2->number_of_files; j++)
|
||||||
{
|
{
|
||||||
table_load_params par{};
|
table_load_params par;
|
||||||
par.dbname= dbname;
|
par.dbname= dbname;
|
||||||
fi= &dir_info2->dir_entry[j];
|
fi= &dir_info2->dir_entry[j];
|
||||||
if (has_extension(fi->name, ".sql") || has_extension(fi->name, ".txt"))
|
if (has_extension(fi->name, ".sql") || has_extension(fi->name, ".txt"))
|
||||||
|
|
Loading…
Add table
Reference in a new issue