Skip to content

Commit 8601a3b

Browse files
fix
1 parent 6663dd7 commit 8601a3b

File tree

1 file changed

+9
-4
lines changed

1 file changed

+9
-4
lines changed

ydb/core/tx/columnshard/engines/portions/constructor.cpp

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,14 +13,19 @@ TPortionDataAccessor TPortionInfoConstructor::Build(const bool needChunksNormali
1313
AFL_VERIFY(!Constructed);
1414
Constructed = true;
1515

16+
MetaConstructor.ColumnRawBytes = 0;
17+
MetaConstructor.ColumnBlobBytes = 0;
18+
MetaConstructor.IndexRawBytes = 0;
19+
MetaConstructor.IndexBlobBytes = 0;
20+
1621
MetaConstructor.RecordsCount = GetRecordsCount();
1722
for (auto&& r : Records) {
18-
MetaConstructor.ColumnRawBytes += r.GetMeta().GetRawBytes();
19-
MetaConstructor.ColumnBlobBytes += r.GetBlobRange().GetSize();
23+
*MetaConstructor.ColumnRawBytes += r.GetMeta().GetRawBytes();
24+
*MetaConstructor.ColumnBlobBytes += r.GetBlobRange().GetSize();
2025
}
2126
for (auto&& r : Indexes) {
22-
MetaConstructor.IndexRawBytes += r.GetRawBytes();
23-
MetaConstructor.IndexBlobBytes += r.GetDataSize();
27+
*MetaConstructor.IndexRawBytes += r.GetRawBytes();
28+
*MetaConstructor.IndexBlobBytes += r.GetDataSize();
2429
}
2530

2631
std::shared_ptr<TPortionInfo> result(new TPortionInfo(MetaConstructor.Build()));

0 commit comments

Comments
 (0)