From eca1a51d29ef5528c424d02d29f752fc65f092a3 Mon Sep 17 00:00:00 2001 From: Hongze Cheng Date: Thu, 21 Jan 2021 15:36:12 +0800 Subject: [PATCH] fix a bug --- src/tsdb/src/tsdbFS.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/tsdb/src/tsdbFS.c b/src/tsdb/src/tsdbFS.c index 51c5a92edd..700d605468 100644 --- a/src/tsdb/src/tsdbFS.c +++ b/src/tsdb/src/tsdbFS.c @@ -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;