Move consdiffmgr_rescan() into a mainloop event.

The change here was very simple, since there is a flag set whenever
we want to schedule this event.

Closes ticket 25391.
m
This commit is contained in:
Nick Mathewson
2018-04-26 12:20:01 -04:00
parent 33cba1195b
commit 8a81a70878
3 changed files with 40 additions and 8 deletions
+9
View File
@@ -0,0 +1,9 @@
o Minor features (mainloop):
- Move responsibility for
rescanning the consensus cache
from a once-per-second callback to a callback that is only scheduled as
needed. Once enough items are removed from our once-per-second
callback, we can eliminate it entirely to conserve CPU when idle.
Closes ticket:
25931.