Don't assume that size
file is valid #99
No reviewers
Labels
No labels
bug
client
code-quality
duplicate
enhancement
help wanted
in progress
invalid
question
ui
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: coderkun/mcg#99
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "dont-assume-cache-size-is-valid"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
I don't know how my cache got into this state, but I had an empty size
file:
This was causing mcg's Library view to crash like this:
Maybe mcg crashed while writing the
size
file at some point? I seethat it writes directly to the size file, which seems potentially risky:
it would probably be safer to write to a temp file and then (atomically)
move it. Still, it seems like a good practice to be resilient here.
After this change, here's what I see get printed by mcg:
And then the problem goes away =)