Immediately restart the defrag cycle if we still need to defrag (#1492)

This commit is contained in:
Madelyn Olson 2024-12-29 08:22:49 -08:00 committed by GitHub
parent 8b40341295
commit e470735d91
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -1112,6 +1112,9 @@ static void endDefragCycle(bool normal_termination) {
server.stat_total_active_defrag_time += elapsedUs(server.stat_last_active_defrag_time);
server.stat_last_active_defrag_time = 0;
server.active_defrag_cpu_percent = 0;
/* Immediately check to see if we should start another defrag cycle. */
monitorActiveDefrag();
}