We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 9e82212 + 2f468e6 commit ce9c6ddCopy full SHA for ce9c6dd
1 file changed
daemon/graphdriver/counter.go
@@ -62,6 +62,10 @@ func (c *RefCounter) Decrement(path string) int {
62
}
63
64
m.count--
65
+ count := m.count
66
+ if count <= 0 {
67
+ delete(c.counts, path)
68
+ }
69
c.mu.Unlock()
70
return m.count
71
0 commit comments