提交 431ce461 编写于 作者: D dapan1121

fix bug

上级 5f3ce43e
......@@ -560,7 +560,7 @@ static int32_t taosPushLogBuffer(SLogBuff *tLogBuff, char *msg, int32_t msgLen)
remainSize = (start > end) ? (end - start - 1) : (start + LOG_BUF_SIZE(tLogBuff) - end - 1);
if (lostLine > 0) {
sprintf(tmpBuf, "\n...Lost %"PRId64" lines here...\n", lostLine);
sprintf(tmpBuf, "...Lost %"PRId64" lines here...\n", lostLine);
tmpBufLen = strlen(tmpBuf);
}
......@@ -617,7 +617,7 @@ static void *taosAsyncOutputLog(void *param) {
SLogBuff *tLogBuff = (SLogBuff *)param;
int32_t log_size = 0;
char tempBuffer[TSDB_DEFAULT_LOG_BUF_UNIT];
char tempBuffer[TSDB_DEFAULT_LOG_BUF_SIZE];
while (1) {
tsem_wait(&(tLogBuff->buffNotEmpty));
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册