Skip to content

Commit 1459018

Browse files
authored
KIKIMR-19139 Bugfix load indexes (#657)
1 parent 228b085 commit 1459018

File tree

1 file changed

+10
-6
lines changed

1 file changed

+10
-6
lines changed

ydb/core/tablet_flat/flat_scan_feed.h

Lines changed: 10 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -359,12 +359,16 @@ namespace NTable {
359359
bool LoadIndexes() noexcept
360360
{
361361
bool ready = true;
362-
for (const auto& partView : Subset.Flatten) {
363-
for (auto indexPageId : partView->IndexPages.Groups) {
364-
ready &= bool(CurrentEnv->TryGetPage(partView.Part.Get(), indexPageId));
365-
}
366-
for (auto indexPageId : partView->IndexPages.Historic) {
367-
ready &= bool(CurrentEnv->TryGetPage(partView.Part.Get(), indexPageId));
362+
if (Levels) {
363+
for (const auto &run: *Levels) {
364+
for (const auto &item : run) {
365+
for (auto indexPageId : item.Part->IndexPages.Groups) {
366+
ready &= bool(CurrentEnv->TryGetPage(item.Part.Get(), indexPageId));
367+
}
368+
for (auto indexPageId : item.Part->IndexPages.Historic) {
369+
ready &= bool(CurrentEnv->TryGetPage(item.Part.Get(), indexPageId));
370+
}
371+
}
368372
}
369373
}
370374
return ready;

0 commit comments

Comments
 (0)