diff --git a/source/dnode/vnode/impl/inc/vnodeDef.h b/source/dnode/vnode/impl/inc/vnodeDef.h index a42cd93b01..e5ce92c210 100644 --- a/source/dnode/vnode/impl/inc/vnodeDef.h +++ b/source/dnode/vnode/impl/inc/vnodeDef.h @@ -18,6 +18,7 @@ #include "vnode.h" #include "vnodeOptions.h" +#include "vnodeStateMgr.h" #ifdef __cplusplus extern "C" { @@ -26,6 +27,7 @@ extern "C" { struct SVnode { char* path; SVnodeOptions options; + SVState state; SMeta* pMeta; STsdb* pTsdb; STQ* pTq; diff --git a/source/dnode/vnode/impl/inc/vnodeStateMgr.h b/source/dnode/vnode/impl/inc/vnodeStateMgr.h new file mode 100644 index 0000000000..a32f682846 --- /dev/null +++ b/source/dnode/vnode/impl/inc/vnodeStateMgr.h @@ -0,0 +1,30 @@ +/* + * Copyright (c) 2019 TAOS Data, Inc. + * + * 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 . + */ + +#ifndef _TD_VNODE_STATE_MGR_H_ +#define _TD_VNODE_STATE_MGR_H_ + +#ifdef __cplusplus +extern "C" { +#endif + +typedef struct { +} SVState; + +#ifdef __cplusplus +} +#endif + +#endif /*_TD_VNODE_STATE_MGR_H_*/ \ No newline at end of file diff --git a/source/dnode/vnode/impl/src/vnodeStateMgr.c b/source/dnode/vnode/impl/src/vnodeStateMgr.c new file mode 100644 index 0000000000..6dea4a4e57 --- /dev/null +++ b/source/dnode/vnode/impl/src/vnodeStateMgr.c @@ -0,0 +1,14 @@ +/* + * Copyright (c) 2019 TAOS Data, Inc. + * + * 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 . + */ \ No newline at end of file