enh/TD-31977-fix-case
This commit is contained in:
parent
c6d8bd7333
commit
61a1a5a2cb
|
@ -602,7 +602,7 @@ void monSendReport(SMonInfo *pMonitor) {
|
||||||
if (pCont != NULL) {
|
if (pCont != NULL) {
|
||||||
EHttpCompFlag flag = tsMonitor.cfg.comp ? HTTP_GZIP : HTTP_FLAT;
|
EHttpCompFlag flag = tsMonitor.cfg.comp ? HTTP_GZIP : HTTP_FLAT;
|
||||||
char tmp[100] = {0};
|
char tmp[100] = {0};
|
||||||
(void)sprintf(tmp, "%" PRId64, tGenQid64(tsMonitor.dnodeId));
|
(void)snprintf(tmp, 100, "%" PRId64, tGenQid64(tsMonitor.dnodeId));
|
||||||
uDebug("report cont with QID:%s", tmp);
|
uDebug("report cont with QID:%s", tmp);
|
||||||
if (taosSendHttpReportWithQID(tsMonitor.cfg.server, tsMonUri, tsMonitor.cfg.port, pCont, strlen(pCont), flag,
|
if (taosSendHttpReportWithQID(tsMonitor.cfg.server, tsMonUri, tsMonitor.cfg.port, pCont, strlen(pCont), flag,
|
||||||
tmp) != 0) {
|
tmp) != 0) {
|
||||||
|
|
|
@ -266,7 +266,10 @@ static int32_t httpCreateMsg(const char* server, const char* uri, uint16_t port,
|
||||||
msg->server = taosStrdup(server);
|
msg->server = taosStrdup(server);
|
||||||
msg->uri = taosStrdup(uri);
|
msg->uri = taosStrdup(uri);
|
||||||
msg->cont = taosMemoryMalloc(contLen);
|
msg->cont = taosMemoryMalloc(contLen);
|
||||||
if (qid != NULL) msg->qid = taosStrdup(qid);
|
if (qid != NULL)
|
||||||
|
msg->qid = taosStrdup(qid);
|
||||||
|
else
|
||||||
|
msg->qid = NULL;
|
||||||
if (msg->server == NULL || msg->uri == NULL || msg->cont == NULL) {
|
if (msg->server == NULL || msg->uri == NULL || msg->cont == NULL) {
|
||||||
httpDestroyMsg(msg);
|
httpDestroyMsg(msg);
|
||||||
*httpMsg = NULL;
|
*httpMsg = NULL;
|
||||||
|
|
Loading…
Reference in New Issue