diff --git a/source/client/src/clientMonitor.c b/source/client/src/clientMonitor.c index 1c636a5505..260a0ebbaa 100644 --- a/source/client/src/clientMonitor.c +++ b/source/client/src/clientMonitor.c @@ -680,7 +680,6 @@ void monitorClose() { } int32_t monitorPutData2MonitorQueue(int64_t clusterId, char* value){ - return -1; // disable slow log monitor MonitorSlowLogData* slowLogData = taosAllocateQitem(sizeof(MonitorSlowLogData), DEF_QITEM, 0); if (slowLogData == NULL) { uError("[monitor] failed to allocate slow log data"); diff --git a/source/client/src/clientSml.c b/source/client/src/clientSml.c index a771fc1635..7e63dcd36a 100644 --- a/source/client/src/clientSml.c +++ b/source/client/src/clientSml.c @@ -1380,7 +1380,7 @@ void freeSSmlKv(void *data) { void smlDestroyInfo(SSmlHandle *info) { if (!info) return; - qDestroyQuery(info->pQuery); +// qDestroyQuery(info->pQuery); taosHashCleanup(info->pVgHash); taosHashCleanup(info->childTables); @@ -1912,6 +1912,7 @@ TAOS_RES *taos_schemaless_insert_inner(TAOS *taos, char *lines[], char *rawLine, return (TAOS_RES *)request; } info->pRequest = request; + info->pRequest->pQuery = info->pQuery; info->ttl = ttl; info->precision = precision; info->protocol = (TSDB_SML_PROTOCOL_TYPE)protocol;