fix: infinite tomb data sync loop

This commit is contained in:
Hongze Cheng 2023-08-11 18:10:16 +08:00
parent 20b3f8c1aa
commit 847bc0da08
1 changed files with 3 additions and 0 deletions

View File

@ -392,6 +392,9 @@ static int32_t tsdbSnapReadTombData(STsdbSnapReader* reader, uint8_t** data) {
code = tTombBlockPut(reader->tombBlock, record);
TSDB_CHECK_CODE(code, lino, _exit);
code = tsdbIterMergerNext(reader->tombIterMerger);
TSDB_CHECK_CODE(code, lino, _exit);
if (TOMB_BLOCK_SIZE(reader->tombBlock) >= 81920) {
break;
}