This commit is contained in:
dapan1121 2021-02-06 11:58:03 +08:00
parent 266746a4e1
commit 8c03652ba4
1 changed files with 3 additions and 1 deletions

View File

@ -659,7 +659,9 @@ static void taosWriteLog(SLogBuff *tLogBuff) {
dbgBigWN++;
writeInterval = MIN_LOG_INTERVAL;
} else if (pollSize > LOG_BUF_SIZE(tLogBuff)/4) {
writeInterval -= LOG_INTERVAL_STEP;
if (writeInterval > MIN_LOG_INTERVAL) {
writeInterval -= LOG_INTERVAL_STEP;
}
}
LOG_BUF_START(tLogBuff) = (LOG_BUF_START(tLogBuff) + pollSize) % LOG_BUF_SIZE(tLogBuff);