From 715bb6d2e906500978809dca9198951f2d9e6aa7 Mon Sep 17 00:00:00 2001 From: Cary Xu Date: Fri, 17 Jun 2022 18:08:41 +0800 Subject: [PATCH] other: code optimization --- source/dnode/vnode/src/tsdb/tsdbCommit.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/dnode/vnode/src/tsdb/tsdbCommit.c b/source/dnode/vnode/src/tsdb/tsdbCommit.c index dd278a7953..284b6c9a4c 100644 --- a/source/dnode/vnode/src/tsdb/tsdbCommit.c +++ b/source/dnode/vnode/src/tsdb/tsdbCommit.c @@ -497,7 +497,7 @@ static int32_t tsdbCommitToFile(SCommitH *pCommith, SDFileSet *pSet, int fid) { if (pIter && pIter->pTable && (!pIdx || ((pIter->pTable->suid < pIdx->suid) || - (pIter->pTable->suid == pIdx->suid && pIter->pTable->uid <= pIdx->uid)))) { + ((pIter->pTable->suid == pIdx->suid) && (pIter->pTable->uid <= pIdx->uid))))) { if (tsdbCommitToTable(pCommith, mIter) < 0) { tsdbCloseCommitFile(pCommith, true); // revert the file change