diff --git a/src/tsdb/src/tsdbMain.c b/src/tsdb/src/tsdbMain.c index 675ce7b144741b67c0ff76fdd36c6865d25a7661..6c7946b7328b609e92480f619f92dac2f4313fbe 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; }