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
mcuadros merged 1 commit intosrc-d:masterfrom
jfontan:panic-cache
Feb 25, 2019
Merged

plumbing/cache: check for empty cache list#1076
mcuadros merged 1 commit intosrc-d:masterfrom
jfontan:panic-cache

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.

4 participants