Skip to content

Commit f3caecb

Browse files
committed
InOrderPathResolver.forgetPathLocked(): handle unusual case first
1 parent 1416919 commit f3caecb

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

sizes/path_resolver.go

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -256,10 +256,13 @@ func (pr *InOrderPathResolver) forgetPathLocked(p *Path) {
256256
panic("forgetPathLocked() called when refcount zero")
257257
}
258258
p.seekerCount--
259+
259260
if p.seekerCount > 0 {
260261
// The path is still wanted (by another seeker).
261262
return
262-
} else if p.parent != nil {
263+
}
264+
265+
if p.parent != nil {
263266
// We already found the object's parent, and the parent's path
264267
// is wanted on account if this object. Decrement its
265268
// seekerCount.

0 commit comments

Comments
 (0)