This commit is contained in:
slguan 2020-02-07 12:58:01 +08:00
parent aaeac496c5
commit da47eeecd2
3 changed files with 34 additions and 1 deletions

View File

@ -20,6 +20,12 @@
extern "C" {
#endif
/*
* Dnode handle read messages
* The processing result is returned by callback function with pShellObj parameter
*/
int32_t dnodeReadData(SQueryMeterMsg *msg, void *pShellObj, void (*callback)(SQueryMeterRsp *rspMsg, void *pShellObj));
#ifdef __cplusplus
}
#endif

View File

@ -53,7 +53,7 @@ int32_t dnodeConfigVnode(int vid, SVnodeCfg *cfg);
/*
* Modify vnode replication information
*/
int32_t dnodeConfigVnodePeers(int vid, SVpeerCfg *cfg);
int32_t dnodeConfigVnodePeers(int vid, /*SVpeerCfgMsg *cfg*/);
/*
* Remove vnode from local repository
@ -65,6 +65,7 @@ int32_t dnodeDropVnode(int vid);
*/
tsdb_repo_t* dnodeGetVnode(int vid);
#ifdef __cplusplus
}
#endif

View File

@ -20,6 +20,32 @@
extern "C" {
#endif
/*
* Check if table already exists
*/
int32_t dnodeCheckTableExist(int vid, int sid, int64_t uid);
/*
* Create table with specified configuration and open it
*/
int32_t dnodeCreateTable(int vid, int sid, SMeterObj *table);
/*
* Modify table configuration information
*/
int32_t dnodeAlterTable(int vid, SMeterObj *table);
/*
* Remove table from local repository
*/
int32_t dnodeDropTable(int vid, int sid, int64_t uid);
/*
* Write data based on dnode
*/
int32_t dnodeWriteData(SShellSubmitMsg *msg);
#ifdef __cplusplus
}
#endif