support disk usage
This commit is contained in:
parent
8c56a75f4f
commit
4f9c9a15db
|
@ -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 tsdbCacheDeleteLast(SLRUCache *pCache, tb_uid_t uid, TSKEY eKey);
|
||||||
int32_t tsdbCacheDelete(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 ==========
|
// ========== inline functions ==========
|
||||||
static FORCE_INLINE int32_t tsdbKeyCmprFn(const void *p1, const void *p2) {
|
static FORCE_INLINE int32_t tsdbKeyCmprFn(const void *p1, const void *p2) {
|
||||||
TSDBKEY *pKey1 = (TSDBKEY *)p1;
|
TSDBKEY *pKey1 = (TSDBKEY *)p1;
|
||||||
|
@ -1073,8 +1075,6 @@ int32_t tsdbSnapPrepDescription(SVnode *pVnode, SSnapshot *pSnap);
|
||||||
|
|
||||||
void tsdbRemoveFile(const char *path);
|
void tsdbRemoveFile(const char *path);
|
||||||
|
|
||||||
int32_t tsdbGetS3Size(STsdb *tsdb, int64_t *size);
|
|
||||||
k
|
|
||||||
#define taosCloseFileWithLog(fd) \
|
#define taosCloseFileWithLog(fd) \
|
||||||
do { \
|
do { \
|
||||||
if (taosCloseFile(fd) < 0) { \
|
if (taosCloseFile(fd) < 0) { \
|
||||||
|
|
|
@ -3215,3 +3215,4 @@ _error:
|
||||||
}
|
}
|
||||||
return code;
|
return code;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue