Skip to content

Commit 64d73d2

Browse files
fix
1 parent 2450266 commit 64d73d2

File tree

1 file changed

+2
-2
lines changed
  • ydb/core/tx/columnshard/engines/changes/compaction/sparsed

1 file changed

+2
-2
lines changed

ydb/core/tx/columnshard/engines/changes/compaction/sparsed/logic.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ bool TSparsedMerger::TCursor::AddIndexTo(const ui32 index, TWriter& writer) {
6868
if (index < NextGlobalPosition) {
6969
return false;
7070
} else if (index == NextGlobalPosition) {
71-
if (index == Chunk->GetFinishPosition()) {
71+
if (index == CommonShift + Chunk->GetRecordsCount()) {
7272
InitArrays(index);
7373
if (index != NextGlobalPosition) {
7474
return false;
@@ -84,7 +84,7 @@ bool TSparsedMerger::TCursor::AddIndexTo(const ui32 index, TWriter& writer) {
8484
}
8585
}
8686
AFL_VERIFY(Chunk->GetStartPosition() <= index);
87-
if (Chunk->GetFinishPosition() <= index) {
87+
if (CommonShift + Chunk->GetRecordsCount() <= index) {
8888
InitArrays(index);
8989
}
9090
bool found = false;

0 commit comments

Comments
 (0)