PolygonDictionary fix bytes_allocated

This commit is contained in:
Maksim Kita 2021-10-15 18:33:10 +03:00
parent 6b9a1ab60b
commit f3c568fbe6

View File

@ -248,6 +248,9 @@ void IPolygonDictionary::calculateBytesAllocated()
{
/// Index allocated by subclass not counted because it take a small part in relation to attributes and polygons
if (configuration.store_polygon_key_column)
bytes_allocated += key_attribute_column->allocatedBytes();
for (const auto & column : attributes_columns)
bytes_allocated += column->allocatedBytes();