This commit is contained in:
Hongze Cheng 2021-11-26 15:22:02 +08:00
parent 6d69cedd28
commit ab9ef13488
1 changed files with 16 additions and 5 deletions

View File

@ -131,14 +131,25 @@ void vnodeOptionsInit(SVnodeCfg *pOptions);
void vnodeOptionsClear(SVnodeCfg *pOptions); void vnodeOptionsClear(SVnodeCfg *pOptions);
/* ------------------------ REQUESTS ------------------------ */ /* ------------------------ REQUESTS ------------------------ */
// Create table request
typedef STbCfg SVCreateTableReq;
typedef struct { typedef struct {
int err; int err;
char info[]; char info[];
} SVCreateTableRsp; } SVnodeRsp;
/// Create table request
typedef STbCfg SVCreateTableReq;
/// Drop table request
typedef struct {
tb_uid_t uid;
} SVDropTableReq;
/// Alter table request
typedef struct {
// TODO
} SVAlterTableReq;
int vnodeCreateTable(SVnode *pVnode, SVCreateTableReq *pReq, SVnodeRsp *pRsp);
int vnodeDropTable(SVnode *pVnode, SVDropTableReq *pReq, SVnodeRsp *pRsp);
int vnodeAlterTable(SVnode *pVnode, SVAlterTableReq *pReq, SVnodeRsp *pRsp);
/* ------------------------ FOR COMPILE ------------------------ */ /* ------------------------ FOR COMPILE ------------------------ */