mirror of
https://github.com/blakeblackshear/frigate.git
synced 2026-03-18 22:28:23 +03:00
In both expire_snapshots() and expire_clips(), the expired_events query uses .iterator() for lazy evaluation, but the very next line calls list(expired_events) inside an f-string for debug logging. This consumes the entire iterator, so the subsequent for loop that deletes media files from disk iterates over an exhausted iterator and processes zero events. Snapshots and clips for removed cameras are never deleted from disk, causing gradual disk space exhaustion. Materialize the iterator into a list before logging so both the debug message and the cleanup loop use the same data. |
||
|---|---|---|
| .. | ||
| __init__.py | ||
| audio.py | ||
| cleanup.py | ||
| maintainer.py | ||
| types.py | ||