Merge pull request #30239 from kitaisreal/polygon-dictionary-fix-bytes-allocated

PolygonDictionary fix bytes_allocated
This commit is contained in:
Maksim Kita 2021-10-15 22:52:27 +03:00 committed by GitHub
commit 87b5710173
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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();