mirror of
https://github.com/zeek/zeek.git
synced 2025-10-17 22:18:20 +00:00
Prevent SQLite storage backend from serving expired entries
The SQLite storage backend implements expiration by hand and garbage collection is done in `DoExpire`. This previously relied exclusively on gets not running within `Storage::expire_interval` of the put, otherwise we would potentially serve expired entries. With this patch we explictly check that entries are not expired before serving them so that the SQLite backend should never serve expired entries.
This commit is contained in:
parent
dc5d7c3fc9
commit
56f5cafa98
3 changed files with 70 additions and 8 deletions
|
@ -0,0 +1,3 @@
|
|||
### BTest baseline data generated by btest-diff. Do not edit. Use "btest -U/-u" to update. Requires BTest >= 0.63.
|
||||
BEFORE, [code=Storage::SUCCESS, error_str=<uninitialized>, value=v]
|
||||
AFTER, [code=Storage::KEY_NOT_FOUND, error_str=<uninitialized>, value=<uninitialized>]
|
Loading…
Add table
Add a link
Reference in a new issue