From 4f9c9a15dbee4c34249f23b3ca0d6b3526873071 Mon Sep 17 00:00:00 2001 From: yihaoDeng Date: Thu, 7 Nov 2024 20:20:44 +0800 Subject: [PATCH] support disk usage --- source/dnode/vnode/src/inc/tsdb.h | 4 ++-- source/libs/executor/src/sysscanoperator.c | 1 + 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/source/dnode/vnode/src/inc/tsdb.h b/source/dnode/vnode/src/inc/tsdb.h index b2f89aa6b4..0080e3f7c2 100644 --- a/source/dnode/vnode/src/inc/tsdb.h +++ b/source/dnode/vnode/src/inc/tsdb.h @@ -959,6 +959,8 @@ int32_t tsdbCacheDeleteLastrow(SLRUCache *pCache, tb_uid_t uid, TSKEY eKey); int32_t tsdbCacheDeleteLast(SLRUCache *pCache, tb_uid_t uid, TSKEY eKey); int32_t tsdbCacheDelete(SLRUCache *pCache, tb_uid_t uid, TSKEY eKey); +int32_t tsdbGetS3Size(STsdb *tsdb, int64_t *size); + // ========== inline functions ========== static FORCE_INLINE int32_t tsdbKeyCmprFn(const void *p1, const void *p2) { TSDBKEY *pKey1 = (TSDBKEY *)p1; @@ -1073,8 +1075,6 @@ int32_t tsdbSnapPrepDescription(SVnode *pVnode, SSnapshot *pSnap); void tsdbRemoveFile(const char *path); -int32_t tsdbGetS3Size(STsdb *tsdb, int64_t *size); -k #define taosCloseFileWithLog(fd) \ do { \ if (taosCloseFile(fd) < 0) { \ diff --git a/source/libs/executor/src/sysscanoperator.c b/source/libs/executor/src/sysscanoperator.c index 4b803acaac..e73ef36a8a 100644 --- a/source/libs/executor/src/sysscanoperator.c +++ b/source/libs/executor/src/sysscanoperator.c @@ -3215,3 +3215,4 @@ _error: } return code; } +