This commit is contained in:
Hongze Cheng 2021-11-12 13:35:10 +08:00
parent a37a59e1f1
commit 6010516f58
3 changed files with 14 additions and 15 deletions

View File

@ -27,10 +27,6 @@ typedef struct SVBufPool SVBufPool;
int vnodeOpenBufPool(SVnode *pVnode); int vnodeOpenBufPool(SVnode *pVnode);
void vnodeCloseBufPool(SVnode *pVnode); void vnodeCloseBufPool(SVnode *pVnode);
SMemAllocator *vnodeCreateMemAllocator(SVnode *pVnode);
void vnodeDestroyMemAllocator(SMemAllocator *pma);
void vnodeRefMemAllocator(SMemAllocator *pma);
void vnodeUnrefMemAllocator(SMemAllocator *pma);
#ifdef __cplusplus #ifdef __cplusplus
} }

View File

@ -16,6 +16,8 @@
#ifndef _TD_META_DEF_H_ #ifndef _TD_META_DEF_H_
#define _TD_META_DEF_H_ #define _TD_META_DEF_H_
#include "mallocator.h"
#include "meta.h" #include "meta.h"
#include "metaCache.h" #include "metaCache.h"
#include "metaDB.h" #include "metaDB.h"
@ -30,12 +32,13 @@ extern "C" {
#endif #endif
struct SMeta { struct SMeta {
char* path; // path of current meta char* path;
SMetaOptions options; // meta option SMetaOptions options;
meta_db_t* pDB; // raw data db meta_db_t* pDB;
meta_index_t* pIdx; // tag index meta_index_t* pIdx;
meta_cache_t* pCache; // LRU cache meta_cache_t* pCache;
STbUidGenerator uidGnrt; // meta table UID generator STbUidGenerator uidGnrt;
SMemAllocatorFactory* pmaf;
}; };
#ifdef __cplusplus #ifdef __cplusplus

View File

@ -29,7 +29,7 @@ extern "C" {
struct STsdb { struct STsdb {
char * path; char * path;
STsdbOptions options; STsdbOptions options;
STsdbMemAllocator *pTMA; SMemAllocatorFactory *pmaf;
}; };
#ifdef __cplusplus #ifdef __cplusplus