Skip to content
This repository has been archived by the owner on Sep 11, 2020. It is now read-only.

plumbing/cache: check for empty cache list #1076

Merged
merged 1 commit into from Feb 25, 2019

Conversation

jfontan
Copy link
Contributor

@jfontan jfontan commented Feb 25, 2019

If there is wrong data in the cache it may cause the eviction code to
empty the object list and cause a panic. This patch adds a check and
sets the cache usage to 0 when this happens.

Fixes #1071

If there is wrong data in the cache it may cause the eviction code to
empty the object list and cause a panic. This patch adds a check and
sets the cache usage to 0 when this happens.

Signed-off-by: Javi Fontan <jfontan@gmail.com>
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants