1
0
mirror of https://github.com/mariadb-corporation/mariadb-columnstore-engine.git synced 2025-12-18 13:54:11 +03:00

Merge pull request #220 from mariadb-corporation/MCOL-838

MCOL-838 Enforce copy of string in StringStore
This commit is contained in:
David.Hall
2017-07-31 09:07:32 -05:00
committed by GitHub

View File

@@ -144,7 +144,7 @@ uint32_t StringStore::deserialize(ByteStream &bs)
for (i = 0; i < count; i++) {
//cout << "deserializing " << size << " bytes\n";
bs >> buf;
shared_ptr<std::string> newString(new std::string(buf));
shared_ptr<std::string> newString(new std::string(buf.c_str()));
mem.push_back(newString);
//bs.advance(size);
ret += (size + 4);