fix: definite lost while get sma meta
This commit is contained in:
parent
f93d465da7
commit
ebd02be60d
|
@ -2803,6 +2803,7 @@ typedef struct {
|
||||||
|
|
||||||
int32_t tSerializeSTableIndexRsp(void* buf, int32_t bufLen, const STableIndexRsp* pRsp);
|
int32_t tSerializeSTableIndexRsp(void* buf, int32_t bufLen, const STableIndexRsp* pRsp);
|
||||||
int32_t tDeserializeSTableIndexRsp(void* buf, int32_t bufLen, STableIndexRsp* pRsp);
|
int32_t tDeserializeSTableIndexRsp(void* buf, int32_t bufLen, STableIndexRsp* pRsp);
|
||||||
|
void tFreeSerializeSTableIndexRsp(STableIndexRsp* pRsp);
|
||||||
|
|
||||||
void tFreeSTableIndexInfo(void* pInfo);
|
void tFreeSTableIndexInfo(void* pInfo);
|
||||||
|
|
||||||
|
|
|
@ -2933,6 +2933,13 @@ int32_t tSerializeSTableIndexRsp(void *buf, int32_t bufLen, const STableIndexRsp
|
||||||
return tlen;
|
return tlen;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void tFreeSerializeSTableIndexRsp(STableIndexRsp *pRsp) {
|
||||||
|
if (pRsp->pIndex != NULL) {
|
||||||
|
taosArrayDestroy(pRsp->pIndex);
|
||||||
|
pRsp->pIndex = NULL;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
int32_t tDeserializeSTableIndexInfo(SDecoder *pDecoder, STableIndexInfo *pInfo) {
|
int32_t tDeserializeSTableIndexInfo(SDecoder *pDecoder, STableIndexInfo *pInfo) {
|
||||||
if (tDecodeI8(pDecoder, &pInfo->intervalUnit) < 0) return -1;
|
if (tDecodeI8(pDecoder, &pInfo->intervalUnit) < 0) return -1;
|
||||||
if (tDecodeI8(pDecoder, &pInfo->slidingUnit) < 0) return -1;
|
if (tDecodeI8(pDecoder, &pInfo->slidingUnit) < 0) return -1;
|
||||||
|
|
|
@ -1153,6 +1153,7 @@ _OVER:
|
||||||
mError("failed to get table index %s since %s", indexReq.tbFName, terrstr());
|
mError("failed to get table index %s since %s", indexReq.tbFName, terrstr());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
tFreeSerializeSTableIndexRsp(&rsp);
|
||||||
return code;
|
return code;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -68,7 +68,7 @@ $null=
|
||||||
|
|
||||||
system_content sh/checkValgrind.sh -n dnode1
|
system_content sh/checkValgrind.sh -n dnode1
|
||||||
print cmd return result ----> [ $system_content ]
|
print cmd return result ----> [ $system_content ]
|
||||||
if $system_content > 3 then
|
if $system_content > 0 then
|
||||||
return -1
|
return -1
|
||||||
endi
|
endi
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue