From 431ce4615ad024a3e2553418ba2349475d6b6682 Mon Sep 17 00:00:00 2001 From: dapan1121 <89396746@qq.com> Date: Fri, 29 Jan 2021 14:13:13 +0800 Subject: [PATCH] fix bug --- src/util/src/tlog.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/util/src/tlog.c b/src/util/src/tlog.c index 20607d8cf8..aae716d271 100644 --- a/src/util/src/tlog.c +++ b/src/util/src/tlog.c @@ -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));