From 6ca808244ff5373f194babeea97f5009b948d749 Mon Sep 17 00:00:00 2001 From: Cary Xu Date: Fri, 15 Oct 2021 12:01:44 +0800 Subject: [PATCH] code optimization --- src/tsdb/src/tsdbMain.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/tsdb/src/tsdbMain.c b/src/tsdb/src/tsdbMain.c index 675ce7b144..6c7946b732 100644 --- a/src/tsdb/src/tsdbMain.c +++ b/src/tsdb/src/tsdbMain.c @@ -189,6 +189,7 @@ bool tsdbIsNeedCommit(STsdbRepo *pRepo) { int nVal = 0; if (sem_getvalue(&pRepo->readyToCommit, &nVal) != 0) { tsdbError("vgId:%d failed to sem_getvalue of readyToCommit", REPO_ID(pRepo)); + return false; } return nVal > 0; } -- GitLab