Skip to content

Commit 580f810

Browse files
authored
Fix end range intersection check (followup to #20574) (#20795)
1 parent 5bc24b4 commit 580f810

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ydb/core/tx/schemeshard/schemeshard_info_types.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2443,7 +2443,7 @@ void TIndexBuildInfo::AddParent(const TSerializedTableRange& range, TShardIdx sh
24432443
parentFrom++;
24442444
}
24452445

2446-
if (parentTo == itFrom->second.From) {
2446+
if (itFrom != Cluster2Shards.end() && parentTo == itFrom->second.From) {
24472447
// Intersects by parentTo
24482448
if (itFrom->second.From < itFrom->first) {
24492449
auto endShards = itFrom->second.Shards;

0 commit comments

Comments
 (0)