diff --git a/src/client/src/tscParseLineProtocol.c b/src/client/src/tscParseLineProtocol.c index 93bbe0e95c9be2da42f9510c0ba9896a3785436e..c4e24e62e2701bcdfe286e2f64200805f446c54a 100644 --- a/src/client/src/tscParseLineProtocol.c +++ b/src/client/src/tscParseLineProtocol.c @@ -874,7 +874,7 @@ static int32_t addChildTableDataPointsToInsertSql(char* cTableName, char* sTable free(colKVs); if (r == fromIndex) { - tscError("buf can not fit one line"); + tscError("buffer can not fit one line"); } *nextIndex = r; *cTableSqlLen = totalLen; @@ -984,8 +984,6 @@ static int32_t applyDataPointsWithSqlInsert(TAOS* taos, TAOS_SML_DATA_POINT* poi pCTablePoints = taosHashIterate(cname2points, pCTablePoints); } - usedBytes += cTableSqlLen; - freeBytes -= cTableSqlLen; batch->sql[usedBytes] = '\0'; info->numBatches++; tscDebug("SML:0x%"PRIx64" sql: %s" , info->id, batch->sql);