Skip to content
This repository was 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>
# for free to subscribe to this conversation on GitHub. Already have an account? #.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants