more
This commit is contained in:
parent
fbf47592fc
commit
8c1638b8fb
|
@ -174,10 +174,6 @@ typedef struct {
|
||||||
int vnodeBuildReq(void **buf, const SVnodeReq *pReq, uint8_t type);
|
int vnodeBuildReq(void **buf, const SVnodeReq *pReq, uint8_t type);
|
||||||
void *vnodeParseReq(void *buf, SVnodeReq *pReq, uint8_t type);
|
void *vnodeParseReq(void *buf, SVnodeReq *pReq, uint8_t type);
|
||||||
|
|
||||||
// TODO
|
|
||||||
int vnodeBuildCreateTableReq(void **buf, const SVCreateTableReq *pReq);
|
|
||||||
void *vnodeParseCreateTableReq(void *buf, SVCreateTableReq *pReq);
|
|
||||||
|
|
||||||
/* ------------------------ FOR COMPILE ------------------------ */
|
/* ------------------------ FOR COMPILE ------------------------ */
|
||||||
|
|
||||||
#if 1
|
#if 1
|
||||||
|
|
|
@ -15,6 +15,9 @@
|
||||||
|
|
||||||
#include "vnodeDef.h"
|
#include "vnodeDef.h"
|
||||||
|
|
||||||
|
static int vnodeBuildCreateTableReq(void **buf, const SVCreateTableReq *pReq);
|
||||||
|
static void *vnodeParseCreateTableReq(void *buf, SVCreateTableReq *pReq);
|
||||||
|
|
||||||
int vnodeBuildReq(void **buf, const SVnodeReq *pReq, uint8_t type) {
|
int vnodeBuildReq(void **buf, const SVnodeReq *pReq, uint8_t type) {
|
||||||
int tsize = 0;
|
int tsize = 0;
|
||||||
|
|
||||||
|
@ -48,7 +51,7 @@ void *vnodeParseReq(void *buf, SVnodeReq *pReq, uint8_t type) {
|
||||||
return buf;
|
return buf;
|
||||||
}
|
}
|
||||||
|
|
||||||
int vnodeBuildCreateTableReq(void **buf, const SVCreateTableReq *pReq) {
|
static int vnodeBuildCreateTableReq(void **buf, const SVCreateTableReq *pReq) {
|
||||||
int tsize = 0;
|
int tsize = 0;
|
||||||
|
|
||||||
tsize += taosEncodeString(buf, pReq->name);
|
tsize += taosEncodeString(buf, pReq->name);
|
||||||
|
@ -76,7 +79,7 @@ int vnodeBuildCreateTableReq(void **buf, const SVCreateTableReq *pReq) {
|
||||||
return tsize;
|
return tsize;
|
||||||
}
|
}
|
||||||
|
|
||||||
void *vnodeParseCreateTableReq(void *buf, SVCreateTableReq *pReq) {
|
static void *vnodeParseCreateTableReq(void *buf, SVCreateTableReq *pReq) {
|
||||||
buf = taosDecodeString(buf, &(pReq->name));
|
buf = taosDecodeString(buf, &(pReq->name));
|
||||||
buf = taosDecodeFixedU32(buf, &(pReq->ttl));
|
buf = taosDecodeFixedU32(buf, &(pReq->ttl));
|
||||||
buf = taosDecodeFixedU32(buf, &(pReq->keep));
|
buf = taosDecodeFixedU32(buf, &(pReq->keep));
|
||||||
|
|
Loading…
Reference in New Issue