diff options
author | ilnaz <ilnaz@ydb.tech> | 2023-07-03 23:21:50 +0300 |
---|---|---|
committer | ilnaz <ilnaz@ydb.tech> | 2023-07-03 23:21:50 +0300 |
commit | 0521dca8fe30807d125366b9f169f25bae6c51aa (patch) | |
tree | 5bafcc5a5d96832d002963122dd9b9f96f16ecfa | |
parent | 77eda50891c73ac3cf8de6d8e90235e891f7ca8e (diff) | |
download | ydb-0521dca8fe30807d125366b9f169f25bae6c51aa.tar.gz |
Fix inf loop at init
-rw-r--r-- | ydb/core/tx/schemeshard/schemeshard__init.cpp | 4 |
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; + } } } |