[TD-6442]<feature>: Support OpenTSDB telnet style data import format
This commit is contained in:
parent
4ae20f6abc
commit
f53b9104d5
|
@ -138,7 +138,6 @@ static int32_t parseTelnetMetricValue(TAOS_SML_KV **pKVs, int *num_kvs, const ch
|
||||||
value = tcalloc(len + 1, 1);
|
value = tcalloc(len + 1, 1);
|
||||||
memcpy(value, start, len);
|
memcpy(value, start, len);
|
||||||
} else {
|
} else {
|
||||||
tfree(*pKVs);
|
|
||||||
return TSDB_CODE_TSC_LINE_SYNTAX_ERROR;
|
return TSDB_CODE_TSC_LINE_SYNTAX_ERROR;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -146,7 +145,6 @@ static int32_t parseTelnetMetricValue(TAOS_SML_KV **pKVs, int *num_kvs, const ch
|
||||||
tscError("OTD:0x%"PRIx64" Failed to convert metric value string(%s) to any type",
|
tscError("OTD:0x%"PRIx64" Failed to convert metric value string(%s) to any type",
|
||||||
info->id, value);
|
info->id, value);
|
||||||
tfree(value);
|
tfree(value);
|
||||||
tfree(*pKVs);
|
|
||||||
return TSDB_CODE_TSC_LINE_SYNTAX_ERROR;
|
return TSDB_CODE_TSC_LINE_SYNTAX_ERROR;
|
||||||
}
|
}
|
||||||
tfree(value);
|
tfree(value);
|
||||||
|
|
Loading…
Reference in New Issue