diff --git a/source/dnode/vnode/src/tsdb/tsdbCommit.c b/source/dnode/vnode/src/tsdb/tsdbCommit.c index 7429d74dad..26b1dc7274 100644 --- a/source/dnode/vnode/src/tsdb/tsdbCommit.c +++ b/source/dnode/vnode/src/tsdb/tsdbCommit.c @@ -366,8 +366,8 @@ static int tsdbCommitToFile(SCommitH *pCommith, SDFileSet *pSet, int fid) { } #endif // Loop to commit each table data in mem and file - int mIter = 0, fIter = 0; - int32_t nBlkIdx = taosArrayGetSize(pCommith->readh.aBlkIdx); + int mIter = 0, fIter = 0; + int nBlkIdx = taosArrayGetSize(pCommith->readh.aBlkIdx); while (true) { SBlockIdx *pIdx = NULL;