提交 aaeac496 编写于 作者: S slguan

#1177

上级 877fb622
......@@ -13,13 +13,58 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
#ifndef TDENGINE_VNODE_MGMT_H
#define TDENGINE_VNODE_MGMT_H
#ifndef TDENGINE_DNODE_VNODE_MGMT_H
#define TDENGINE_DNODE_VNODE_MGMT_H
#ifdef __cplusplus
extern "C" {
#endif
#include <stdint.h>
#include "tsdb.h"
#include "taosmsg.h"
/*
* Open all Vnodes in the local data directory
*/
int32_t dnodeOpenVnodes();
/*
* Close all Vnodes that have been created and opened
*/
int32_t dnodeCloseVnodes();
/*
* Check if vnode already exists
*/
int32_t dnodeCheckVnodeExist(int vid);
/*
* Create vnode with specified configuration and open it
*/
tsdb_repo_t* dnodeCreateVnode(int vid, SVnodeCfg *cfg);
/*
* Modify vnode configuration information
*/
int32_t dnodeConfigVnode(int vid, SVnodeCfg *cfg);
/*
* Modify vnode replication information
*/
int32_t dnodeConfigVnodePeers(int vid, SVpeerCfg *cfg);
/*
* Remove vnode from local repository
*/
int32_t dnodeDropVnode(int vid);
/*
* Get the vnode object that has been opened
*/
tsdb_repo_t* dnodeGetVnode(int vid);
#ifdef __cplusplus
}
#endif
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册