support disk usage

This commit is contained in:
yihaoDeng 2024-11-07 20:20:44 +08:00
parent 8c56a75f4f
commit 4f9c9a15db
2 changed files with 3 additions and 2 deletions

View File

@ -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) { \

View File

@ -3215,3 +3215,4 @@ _error:
}
return code;
}