Skip to content

Commit 47f60fd

Browse files
committed
schemeshard: remove call to GetMainTableForIndex for not-index-table shards
1 parent 0d73241 commit 47f60fd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ydb/core/tx/schemeshard/schemeshard__table_stats.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -397,7 +397,7 @@ bool TTxStoreTableStats::PersistSingleStats(const TPathId& pathId,
397397
}
398398

399399
const TTableIndexInfo* index = Self->Indexes.Value(pathElement->ParentPathId, nullptr).Get();
400-
const TTableInfo* mainTableForIndex = Self->GetMainTableForIndex(pathId);
400+
const TTableInfo* mainTableForIndex = (index ? Self->GetMainTableForIndex(pathId) : nullptr);
401401

402402
TString errStr;
403403
const auto forceShardSplitSettings = Self->SplitSettings.GetForceShardSplitSettings();

0 commit comments

Comments
 (0)