mirror of https://github.com/zulip/zulip.git
tornado: Fix GC of old queues.
This commit is contained in:
parent
b747ea285f
commit
7e9d8cd192
|
@ -549,7 +549,9 @@ def do_gc_event_queues(
|
||||||
|
|
||||||
|
|
||||||
def gc_event_queues(port: int) -> None:
|
def gc_event_queues(port: int) -> None:
|
||||||
start = time.perf_counter()
|
# We cannot use perf_counter here, since we store and compare UNIX
|
||||||
|
# timestamps to it in the queues.
|
||||||
|
start = time.time()
|
||||||
to_remove: Set[str] = set()
|
to_remove: Set[str] = set()
|
||||||
affected_users: Set[int] = set()
|
affected_users: Set[int] = set()
|
||||||
affected_realms: Set[int] = set()
|
affected_realms: Set[int] = set()
|
||||||
|
@ -571,7 +573,7 @@ def gc_event_queues(port: int) -> None:
|
||||||
port,
|
port,
|
||||||
len(to_remove),
|
len(to_remove),
|
||||||
len(affected_users),
|
len(affected_users),
|
||||||
time.perf_counter() - start,
|
time.time() - start,
|
||||||
len(clients),
|
len(clients),
|
||||||
handler_stats_string(),
|
handler_stats_string(),
|
||||||
)
|
)
|
||||||
|
|
Loading…
Reference in New Issue