Commit 19cea738 authored by Vladislav Vaintroub's avatar Vladislav Vaintroub

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.
parent a5b80531
...@@ -81,7 +81,7 @@ struct table_load_params ...@@ -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, ...@@ -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"))
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment