fix: alter stt_trigger bug

This commit is contained in:
Hongze Cheng 2023-08-23 13:31:19 +08:00
parent ec7614449e
commit a601cd21bd
1 changed files with 22 additions and 25 deletions

View File

@ -235,12 +235,8 @@ static int32_t tsdbCommitOpenReader(SCommitter2 *committer) {
return 0;
}
ASSERT(TARRAY2_SIZE(committer->ctx->fset->lvlArr) == 1);
SSttLvl *lvl = TARRAY2_FIRST(committer->ctx->fset->lvlArr);
ASSERT(lvl->level == 0);
SSttLvl *lvl;
TARRAY2_FOREACH(committer->ctx->fset->lvlArr, lvl) {
STFileObj *fobj = NULL;
TARRAY2_FOREACH(lvl->fobjArr, fobj) {
SSttFileReader *sttReader;
@ -266,6 +262,7 @@ static int32_t tsdbCommitOpenReader(SCommitter2 *committer) {
code = TARRAY2_APPEND(committer->fopArray, op);
TSDB_CHECK_CODE(code, lino, _exit);
}
}
_exit:
if (code) {