msg update
This commit is contained in:
parent
524edc1552
commit
9f632cae67
|
@ -1921,12 +1921,13 @@ typedef struct {
|
||||||
|
|
||||||
typedef struct {
|
typedef struct {
|
||||||
int8_t type; // 0 status report, 1 update data
|
int8_t type; // 0 status report, 1 update data
|
||||||
char indexName[TSDB_INDEX_NAME_LEN]; //
|
int64_t indexUid;
|
||||||
STimeWindow windows;
|
int64_t skey; // start TS key of interval/sliding window
|
||||||
} STSmaMsg;
|
} STSmaMsg;
|
||||||
|
|
||||||
typedef struct {
|
typedef struct {
|
||||||
int64_t ver; // use a general definition
|
int64_t ver; // use a general definition
|
||||||
|
int64_t indexUid;
|
||||||
char indexName[TSDB_INDEX_NAME_LEN];
|
char indexName[TSDB_INDEX_NAME_LEN];
|
||||||
} SVDropTSmaReq;
|
} SVDropTSmaReq;
|
||||||
|
|
||||||
|
|
|
@ -2641,12 +2641,14 @@ int32_t tSerializeSVDropTSmaReq(void **buf, SVDropTSmaReq *pReq) {
|
||||||
int32_t tlen = 0;
|
int32_t tlen = 0;
|
||||||
|
|
||||||
tlen += taosEncodeFixedI64(buf, pReq->ver);
|
tlen += taosEncodeFixedI64(buf, pReq->ver);
|
||||||
|
tlen += taosEncodeFixedI64(buf, pReq->indexUid);
|
||||||
tlen += taosEncodeString(buf, pReq->indexName);
|
tlen += taosEncodeString(buf, pReq->indexName);
|
||||||
|
|
||||||
return tlen;
|
return tlen;
|
||||||
}
|
}
|
||||||
void *tDeserializeSVDropTSmaReq(void *buf, SVDropTSmaReq *pReq) {
|
void *tDeserializeSVDropTSmaReq(void *buf, SVDropTSmaReq *pReq) {
|
||||||
buf = taosDecodeFixedI64(buf, &(pReq->ver));
|
buf = taosDecodeFixedI64(buf, &(pReq->ver));
|
||||||
|
buf = taosDecodeFixedI64(buf, &(pReq->indexUid));
|
||||||
buf = taosDecodeStringTo(buf, pReq->indexName);
|
buf = taosDecodeStringTo(buf, pReq->indexName);
|
||||||
|
|
||||||
return buf;
|
return buf;
|
||||||
|
|
Loading…
Reference in New Issue