support disk usage

This commit is contained in:
yihaoDeng 2024-11-06 21:22:26 +08:00
parent a6436882a2
commit 12beff2a0a
2 changed files with 3 additions and 1 deletions

View File

@ -1758,6 +1758,7 @@ typedef struct {
int64_t cacheSize;
int64_t walSize;
int64_t metaSize;
int64_t rawDataSize;
} SDbSizeStatisInfo;
typedef struct {

View File

@ -895,9 +895,10 @@ int32_t vnodeGetDBSize(void *pVnode, SDbSizeStatisInfo *pInfo) {
dirSize[i] = size;
}
pInfo->l1Size = dirSize[0];
pInfo->l1Size = dirSize[0] - dirSize[3];
pInfo->walSize = dirSize[1];
pInfo->metaSize = dirSize[2];
pInfo->cacheSize = dirSize[3];
return 0;
}