refact
This commit is contained in:
parent
a37a59e1f1
commit
6010516f58
|
@ -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
|
||||||
}
|
}
|
||||||
|
|
|
@ -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
|
||||||
|
|
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue