mirror of
https://github.com/scottlamb/moonfire-nvr.git
synced 2024-12-26 07:05:56 -05:00
8d9939603e
When list_oldest_recordings was called twice with no intervening flush, it returned the same rows twice. This led to trying to delete it twice and all following flushes failing with a "no such recording x/y" message. Now, return each row only once, and track how many bytes have been returned. I think dir.rs's logic is still wrong for how many bytes to delete when multiple recordings are flushed at once (it ignores the bytes added by the first when computing the bytes to delete for the second), but this is progress. |
||
---|---|---|
.. | ||
testdata | ||
Cargo.toml | ||
coding.rs | ||
db.rs | ||
dir.rs | ||
lib.rs | ||
raw.rs | ||
recording.rs | ||
schema.proto | ||
schema.rs | ||
schema.sql | ||
testutil.rs |