This commit is contained in:
Hongze Cheng 2021-11-09 13:24:22 +08:00
parent 694d8aa9c9
commit 79e5aeaa09
4 changed files with 19 additions and 42 deletions

View File

@ -1,41 +0,0 @@
/*
* 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_IMPL_H_
#define _TD_VNODE_IMPL_H_
#include "os.h"
#include "trequest.h"
#include "meta.h"
#include "tq.h"
#include "tsdb.h"
#ifdef __cplusplus
extern "C" {
#endif
struct SVnodeOptions {
size_t wsize;
STsdbOptions tsdbOptions;
SMetaOptions metaOptions;
// STqOptions tqOptions; // TODO
};
#ifdef __cplusplus
}
#endif
#endif /*_TD_VNODE_IMPL_H_*/

View File

@ -16,7 +16,12 @@
#ifndef _TD_VNODE_H_ #ifndef _TD_VNODE_H_
#define _TD_VNODE_H_ #define _TD_VNODE_H_
#include "impl/vnodeImpl.h" #include "os.h"
#include "trequest.h"
#include "meta.h"
#include "tq.h"
#include "tsdb.h"
#ifdef __cplusplus #ifdef __cplusplus
extern "C" { extern "C" {
@ -39,6 +44,14 @@ int vnodeProcessSyncReq(SVnode *pVnode, SRequest *pReq);
void vnodeOptionsInit(SVnodeOptions *); void vnodeOptionsInit(SVnodeOptions *);
void vnodeOptionsClear(SVnodeOptions *); void vnodeOptionsClear(SVnodeOptions *);
/* ------------------------ STRUCT DEFINITIONS ------------------------ */
struct SVnodeOptions {
size_t wsize;
STsdbOptions tsdbOptions;
SMetaOptions metaOptions;
// STqOptions tqOptions; // TODO
};
#if 1 #if 1
#include "taosmsg.h" #include "taosmsg.h"

View File

@ -23,6 +23,7 @@
#include "vnodeCommit.h" #include "vnodeCommit.h"
#include "vnodeOptions.h" #include "vnodeOptions.h"
#include "vnodeStateMgr.h" #include "vnodeStateMgr.h"
#include "vnodeSync.h"
#ifdef __cplusplus #ifdef __cplusplus
extern "C" { extern "C" {

View File

@ -20,6 +20,10 @@
extern "C" { extern "C" {
#endif #endif
typedef struct {
/* data */
} SVnodeSync;
#ifdef __cplusplus #ifdef __cplusplus
} }
#endif #endif