Closed xiaguan closed 6 months ago
evict
may return None
even then cache is not empty.
https://github.com/MrCroxx/foyer/blob/main/foyer-memory/src/eviction/s3fifo.rs#L141-L182
If the small queue eviction will be skipped.
https://github.com/MrCroxx/foyer/blob/main/foyer-memory/src/eviction/s3fifo.rs#L161
And this line subtracts the wrong charges. 🥹 I'll fix the bugs.
evict
may returnNone
even then cache is not empty.https://github.com/MrCroxx/foyer/blob/main/foyer-memory/src/eviction/s3fifo.rs#L141-L182
If the small queue eviction will be skipped.
https://github.com/MrCroxx/foyer/blob/main/foyer-memory/src/eviction/s3fifo.rs#L161
And this line subtracts the wrong charges. 🥹 I'll fix the bugs.
Reproduce commands(by fuzz)