aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorilnaz <ilnaz@ydb.tech>2023-07-03 23:21:50 +0300
committerilnaz <ilnaz@ydb.tech>2023-07-03 23:21:50 +0300
commit0521dca8fe30807d125366b9f169f25bae6c51aa (patch)
tree5bafcc5a5d96832d002963122dd9b9f96f16ecfa
parent77eda50891c73ac3cf8de6d8e90235e891f7ca8e (diff)
downloadydb-0521dca8fe30807d125366b9f169f25bae6c51aa.tar.gz
Fix inf loop at init
-rw-r--r--ydb/core/tx/schemeshard/schemeshard__init.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/ydb/core/tx/schemeshard/schemeshard__init.cpp b/ydb/core/tx/schemeshard/schemeshard__init.cpp
index a9c719aff5..9bfdded52c 100644
--- a/ydb/core/tx/schemeshard/schemeshard__init.cpp
+++ b/ydb/core/tx/schemeshard/schemeshard__init.cpp
@@ -2936,6 +2936,10 @@ struct TSchemeShard::TTxInit : public TTransactionBase<TSchemeShard> {
} else {
stream->DoneShards.insert(shardIdx);
}
+
+ if (!rowset.Next()) {
+ return false;
+ }
}
}