From 3df3d3f3d06af63abf7ec970f8b24472fc471b4c Mon Sep 17 00:00:00 2001 From: kailixu Date: Sun, 19 Feb 2023 13:08:17 +0800 Subject: [PATCH] chore: more code --- src/inc/tsdb.h | 2 +- src/tsdb/src/tsdbMeta.c | 2 +- src/tsdb/src/tsdbRead.c | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/inc/tsdb.h b/src/inc/tsdb.h index 03b21029f5..fb37a16ed4 100644 --- a/src/inc/tsdb.h +++ b/src/inc/tsdb.h @@ -131,7 +131,7 @@ STableCfg *tsdbCreateTableCfgFromMsg(SMDCreateTableMsg *pMsg); int tsdbCreateTable(STsdbRepo *repo, STableCfg *pCfg); int tsdbDropTable(STsdbRepo *pRepo, STableId tableId); int tsdbUpdateTableTagValue(STsdbRepo *repo, SUpdateTableTagValMsg *pMsg); -int tsdbPrintTables(STsdbRepo *repo, uint64_t qId); +int tsdbDumpTables(STsdbRepo *repo, uint64_t qId); uint32_t tsdbGetFileInfo(STsdbRepo *repo, char *name, uint32_t *index, uint32_t eindex, int64_t *size); diff --git a/src/tsdb/src/tsdbMeta.c b/src/tsdb/src/tsdbMeta.c index 97a1e16b55..b725cd29cb 100644 --- a/src/tsdb/src/tsdbMeta.c +++ b/src/tsdb/src/tsdbMeta.c @@ -213,7 +213,7 @@ _err: return -1; } -int tsdbPrintTables(STsdbRepo *pRepo, uint64_t qId) { +int tsdbDumpTables(STsdbRepo *pRepo, uint64_t qId) { STsdbMeta *pMeta = pRepo->tsdbMeta; if (tsdbRLockRepoMeta(pRepo) < 0) return -1; for (int32_t i = 0; i < pMeta->maxTables; ++i) { diff --git a/src/tsdb/src/tsdbRead.c b/src/tsdb/src/tsdbRead.c index 9926b0499b..605d6c50ec 100644 --- a/src/tsdb/src/tsdbRead.c +++ b/src/tsdb/src/tsdbRead.c @@ -2809,7 +2809,7 @@ int32_t tsdbGetFileBlocksDistInfo(TsdbQueryHandleT* queryHandle, STableBlockDist tsdbUnLockFS(pFileHandle); if(tsMetaSyncOption) { - tsdbPrintTables(pQueryHandle->pTsdb, pQueryHandle->qId); + tsdbDumpTables(pQueryHandle->pTsdb, pQueryHandle->qId); } pTableBlockInfo->numOfFiles += 1; -- GitLab