From d25a2997869954601988e2b9e1e6e12ab2d40e8e Mon Sep 17 00:00:00 2001 From: Cary Xu Date: Tue, 9 Nov 2021 08:30:49 +0800 Subject: [PATCH] update --- src/tsdb/src/tsdbTruncate.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/tsdb/src/tsdbTruncate.c b/src/tsdb/src/tsdbTruncate.c index ff31d6236a..bcb6307b2a 100644 --- a/src/tsdb/src/tsdbTruncate.c +++ b/src/tsdb/src/tsdbTruncate.c @@ -177,15 +177,17 @@ static int tsdbTruncateMeta(STsdbRepo *pRepo) { static int tsdbTruncateTSData(STsdbRepo *pRepo, void *param) { STruncateH compactH; SDFileSet *pSet = NULL; + STruncateTblMsg *pMsg = (STruncateTblMsg *)param; + ASSERT(pMsg != NULL); - tsdbDebug("vgId:%d start to truncate TS data", REPO_ID(pRepo)); + tsdbDebug("vgId:%d start to truncate TS data for %" PRIu64, REPO_ID(pRepo), pMsg->uid); if (tsdbInitTruncateH(&compactH, pRepo) < 0) { return -1; } while ((pSet = tsdbFSIterNext(&(compactH.fsIter)))) { - // Remove those expired files + // remove expired files if (pSet->fid < compactH.rtn.minFid) { tsdbInfo("vgId:%d FSET %d on level %d disk id %d expires, remove it", REPO_ID(pRepo), pSet->fid, TSDB_FSET_LEVEL(pSet), TSDB_FSET_ID(pSet)); -- GitLab