fix:reset measuretag pointer if it is the same child table
This commit is contained in:
parent
a7aa9ac4a6
commit
97120dcd0a
|
@ -1371,7 +1371,7 @@ static int32_t smlParseLine(SSmlHandle *info, char *lines[], char *rawLine, char
|
|||
if (info->dataFormat) {
|
||||
SSmlLineInfo element = {0};
|
||||
code = smlParseTelnetString(info, (char *)tmp, (char *)tmp + len, &element);
|
||||
taosMemoryFree(element.measureTag);
|
||||
if(element.measureTagsLen != 0) taosMemoryFree(element.measureTag);
|
||||
} else {
|
||||
code = smlParseTelnetString(info, (char *)tmp, (char *)tmp + len, info->lines + i);
|
||||
}
|
||||
|
|
|
@ -1271,7 +1271,7 @@ int32_t smlParseJSON(SSmlHandle *info, char *payload) {
|
|||
if(info->dataFormat) {
|
||||
SSmlLineInfo element = {0};
|
||||
ret = smlParseJSONString(info, &dataPointStart, &element);
|
||||
taosMemoryFree(element.measureTag);
|
||||
if(element.measureTagsLen != 0) taosMemoryFree(element.measureTag);
|
||||
}else{
|
||||
if(cnt >= payloadNum){
|
||||
payloadNum = payloadNum << 1;
|
||||
|
|
Loading…
Reference in New Issue