2021-11-07 07:58:32 +00:00
|
|
|
/*
|
|
|
|
|
* Copyright (c) 2019 TAOS Data, Inc. <jhtao@taosdata.com>
|
|
|
|
|
*
|
|
|
|
|
* This program is free software: you can use, redistribute, and/or modify
|
|
|
|
|
* it under the terms of the GNU Affero General Public License, version 3
|
|
|
|
|
* or later ("AGPL"), as published by the Free Software Foundation.
|
|
|
|
|
*
|
|
|
|
|
* This program is distributed in the hope that it will be useful, but WITHOUT
|
|
|
|
|
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
|
|
|
|
|
* FITNESS FOR A PARTICULAR PURPOSE.
|
|
|
|
|
*
|
|
|
|
|
* You should have received a copy of the GNU Affero General Public License
|
|
|
|
|
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
#ifndef _TD_VNODE_DEF_H_
|
|
|
|
|
#define _TD_VNODE_DEF_H_
|
|
|
|
|
|
2021-11-09 03:22:25 +00:00
|
|
|
#include "mallocator.h"
|
2021-11-09 03:45:01 +00:00
|
|
|
#include "sync.h"
|
2021-11-09 09:52:06 +00:00
|
|
|
#include "tlockfree.h"
|
2021-11-10 13:25:55 +00:00
|
|
|
#include "wal.h"
|
2021-11-29 07:42:17 +00:00
|
|
|
#include "tcoding.h"
|
2021-11-09 09:52:06 +00:00
|
|
|
|
2021-11-07 07:58:32 +00:00
|
|
|
#include "vnode.h"
|
2021-11-12 02:53:52 +00:00
|
|
|
#include "vnodeBufferPool.h"
|
2021-11-29 03:53:31 +00:00
|
|
|
#include "vnodeCfg.h"
|
2021-11-09 03:45:01 +00:00
|
|
|
#include "vnodeCommit.h"
|
2021-11-26 05:43:38 +00:00
|
|
|
#include "vnodeFS.h"
|
2021-11-29 03:53:31 +00:00
|
|
|
#include "vnodeRequest.h"
|
2021-11-08 06:34:48 +00:00
|
|
|
#include "vnodeStateMgr.h"
|
2021-11-09 05:24:22 +00:00
|
|
|
#include "vnodeSync.h"
|
2021-11-07 07:58:32 +00:00
|
|
|
|
|
|
|
|
#ifdef __cplusplus
|
|
|
|
|
extern "C" {
|
|
|
|
|
#endif
|
|
|
|
|
|
|
|
|
|
struct SVnode {
|
2021-11-22 07:02:53 +00:00
|
|
|
char* path;
|
|
|
|
|
SVnodeCfg config;
|
|
|
|
|
SVState state;
|
|
|
|
|
SVBufPool* pBufPool;
|
|
|
|
|
SMeta* pMeta;
|
|
|
|
|
STsdb* pTsdb;
|
|
|
|
|
STQ* pTq;
|
|
|
|
|
SWal* pWal;
|
|
|
|
|
SVnodeSync* pSync;
|
|
|
|
|
SVnodeFS* pFs;
|
2021-11-07 07:58:32 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
|
|
#ifdef __cplusplus
|
|
|
|
|
}
|
|
|
|
|
#endif
|
|
|
|
|
|
|
|
|
|
#endif /*_TD_VNODE_DEF_H_*/
|