fix a bug

This commit is contained in:
Hongze Cheng 2021-01-21 15:36:12 +08:00
parent 8c93f9d74c
commit eca1a51d29
1 changed files with 1 additions and 1 deletions

View File

@ -541,7 +541,7 @@ SDFileSet *tsdbFSIterNext(SFSIter *pIter) {
pIter->index--;
}
if (pIter->index > 0) {
if (pIter->index >= 0) {
pIter->fid = ((SDFileSet *)taosArrayGet(pfs->cstatus->df, pIter->index))->fid;
} else {
pIter->fid = TSDB_IVLD_FID;