rft: 任务执行期间Log Rotate增加检查,并上调阈值至64MiB (#11670)

* fix: Log Rotate在任务执行期间不进行检查导致单体log文件过大

* fix: unsigned type

* perf: 加锁

* perf: 加锁优化

* perf: 上调log单文件大小至64MiB

* perf: 继续优化

* perf: 优化加锁

* fix: 64MB
This commit is contained in:
status102
2025-01-30 23:13:02 +08:00
committed by GitHub
parent fa85cca0e2
commit aa97deef9b
2 changed files with 29 additions and 16 deletions

View File

@@ -417,7 +417,7 @@ void Assistant::working_proc()
finished_tasks.clear();
m_thread_idle = true;
m_running = false;
Log.flush();
Log.rotate_check();
m_condvar.wait(lock);
continue;
}