1
0
mirror of https://github.com/mariadb-corporation/mariadb-columnstore-engine.git synced 2025-07-30 19:23:07 +03:00

[MCOL-4573] resize cpimport.bin arg vector as needed

This commit is contained in:
Alexey Antipovsky
2021-04-05 13:20:32 +03:00
parent b82c10fc4c
commit 16002e281d

View File

@ -479,16 +479,16 @@ void WESplitterApp::invokeCpimport()
std::istringstream ss(aCmdLineStr);
std::string arg;
std::vector<std::string> v2(50, "");
unsigned int i = 0;
std::vector<std::string> v2;
v2.reserve(50);
while (ss >> arg)
{
//we need something that works on Windows as well as linux
v2[i++] = arg;
v2.push_back(arg);
}
for (unsigned int j = 0; j < i; ++j)
for (unsigned int j = 0; j < v2.size(); ++j)
{
Cmds.push_back(const_cast<char*>(v2[j].c_str()));
}