Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
ivanmorozov333 committed Oct 29, 2024
1 parent 6a5ea8e commit d3007ae
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions ydb/core/tx/columnshard/engines/portions/constructor.h
Original file line number Diff line number Diff line change
Expand Up @@ -175,10 +175,12 @@ class TPortionInfoConstructor {
for (auto&& i : chunks) {
Validate(i);
if (entityId != i.GetEntityId()) {
if (recordsCount) {
AFL_VERIFY(recordsCountCurrent == *recordsCount);
} else {
recordsCount = recordsCountCurrent;
if (entityId) {
if (recordsCount) {
AFL_VERIFY(recordsCountCurrent == *recordsCount);
} else {
recordsCount = recordsCountCurrent;
}
}
AFL_VERIFY(entityId < i.GetEntityId())("entity", entityId)("next", i.GetEntityId())("details", debugString());
AFL_VERIFY(i.GetChunkIdx() == 0);
Expand Down

0 comments on commit d3007ae

Please sign in to comment.