This commit is contained in:
dapan1121 2021-01-29 14:13:13 +08:00
parent 5f3ce43e2e
commit 431ce4615a
1 changed files with 2 additions and 2 deletions

View File

@ -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));