Skip to content

Commit

Permalink
Immediately restart the defrag cycle if we still need to defrag (#1492)
Browse files Browse the repository at this point in the history
  • Loading branch information
madolson authored Dec 29, 2024
1 parent 8b40341 commit e470735
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/defrag.c
Original file line number Diff line number Diff line change
Expand Up @@ -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();
}


Expand Down

0 comments on commit e470735

Please sign in to comment.