From caf9d9f0829b43eae9010222f126567692c8614e Mon Sep 17 00:00:00 2001 From: lichuang Date: Fri, 29 Oct 2021 09:02:21 +0800 Subject: [PATCH] [TD-10814]fix tsdb compact state error --- src/tsdb/src/tsdbCompact.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/tsdb/src/tsdbCompact.c b/src/tsdb/src/tsdbCompact.c index 3b5e8ce56d..b780af6633 100644 --- a/src/tsdb/src/tsdbCompact.c +++ b/src/tsdb/src/tsdbCompact.c @@ -68,6 +68,7 @@ void *tsdbCompactImpl(STsdbRepo *pRepo) { // Check if there are files in TSDB FS to compact if (REPO_FS(pRepo)->cstatus->pmf == NULL) { tsdbInfo("vgId:%d no file to compact in FS", REPO_ID(pRepo)); + pRepo->compactState = TSDB_NO_COMPACT; return NULL; } -- GitLab