提交 6010516f 编写于 作者: H Hongze Cheng

refact

上级 a37a59e1
......@@ -25,12 +25,8 @@ extern "C" {
typedef struct SVBufPool SVBufPool;
int vnodeOpenBufPool(SVnode *pVnode);
void vnodeCloseBufPool(SVnode *pVnode);
SMemAllocator *vnodeCreateMemAllocator(SVnode *pVnode);
void vnodeDestroyMemAllocator(SMemAllocator *pma);
void vnodeRefMemAllocator(SMemAllocator *pma);
void vnodeUnrefMemAllocator(SMemAllocator *pma);
int vnodeOpenBufPool(SVnode *pVnode);
void vnodeCloseBufPool(SVnode *pVnode);
#ifdef __cplusplus
}
......
......@@ -16,6 +16,8 @@
#ifndef _TD_META_DEF_H_
#define _TD_META_DEF_H_
#include "mallocator.h"
#include "meta.h"
#include "metaCache.h"
#include "metaDB.h"
......@@ -30,12 +32,13 @@ extern "C" {
#endif
struct SMeta {
char* path; // path of current meta
SMetaOptions options; // meta option
meta_db_t* pDB; // raw data db
meta_index_t* pIdx; // tag index
meta_cache_t* pCache; // LRU cache
STbUidGenerator uidGnrt; // meta table UID generator
char* path;
SMetaOptions options;
meta_db_t* pDB;
meta_index_t* pIdx;
meta_cache_t* pCache;
STbUidGenerator uidGnrt;
SMemAllocatorFactory* pmaf;
};
#ifdef __cplusplus
......
......@@ -27,9 +27,9 @@ extern "C" {
#endif
struct STsdb {
char * path;
STsdbOptions options;
STsdbMemAllocator *pTMA;
char * path;
STsdbOptions options;
SMemAllocatorFactory *pmaf;
};
#ifdef __cplusplus
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册