1
0
mirror of https://github.com/mariadb-corporation/mariadb-columnstore-engine.git synced 2025-08-01 06:46:55 +03:00

MCOL-5 Building the cpimport command line for LDI relied on the addresses of the contents of a std:vector being static during re-allocation. This is an erroneous assumption. Recoded to build the vector completely, then use it.

This commit is contained in:
David Hall
2016-08-05 14:09:19 -05:00
parent 0d2b69c031
commit 7598e8bc75
3 changed files with 17 additions and 8 deletions

View File

@ -3455,12 +3455,15 @@ void ha_calpont_impl_start_bulk_insert(ha_rows rows, TABLE* table)
//cout << "aCmdLine = " << aCmdLine << endl;
std::istringstream ss(aCmdLine);
std::string arg;
std::vector<std::string> v2;
std::vector<std::string> v2(20, "");
while (ss >> arg)
{
v2.push_back(arg);
Cmds.push_back(const_cast<char*>(v2.back().c_str()));
}
}
for (unsigned int i = 0; i < v2.size(); ++i)
{
Cmds.push_back(const_cast<char*>(v2[i].c_str()));
}
Cmds.push_back(0); //null terminate