From 768d7206c0134c0bcf5b995ba590e603ec55aaa7 Mon Sep 17 00:00:00 2001 From: Haojun Liao Date: Tue, 23 Jun 2020 22:52:21 +0800 Subject: [PATCH] [td-225] --- src/client/src/tscParseInsert.c | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/src/client/src/tscParseInsert.c b/src/client/src/tscParseInsert.c index 11aa61d448..f2af4f1d32 100644 --- a/src/client/src/tscParseInsert.c +++ b/src/client/src/tscParseInsert.c @@ -1035,10 +1035,9 @@ int tsParseInsertSql(SSqlObj *pSql) { pTableMetaInfo = tscGetMetaInfo(pQueryInfo, 0); } - // TODO: 2048 is added because TSDB_MAX_TAGS_LEN now is 65536, but TSDB_PAYLOAD_SIZE is 65380 -// if ((code = tscAllocPayload(pCmd, TSDB_PAYLOAD_SIZE + 2048)) != TSDB_CODE_SUCCESS) { -// return code; -// } + if ((code = tscAllocPayload(pCmd, TSDB_DEFAULT_PAYLOAD_SIZE)) != TSDB_CODE_SUCCESS) { + return code; + } if (NULL == pCmd->pTableList) { pCmd->pTableList = taosHashInit(128, taosGetDefaultHashFunction(TSDB_DATA_TYPE_BIGINT), false); -- GitLab