Skip to content

Commit 6290053

Browse files
committed
Ha-ha, it's funny that it worked before
Fixes inode "double-forget" attempts on restarted listings
1 parent 2302178 commit 6290053

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

internal/dir.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -807,6 +807,7 @@ func (parent *Inode) removeAllChildrenUnlocked() {
807807
dh.lastInternalOffset = 2
808808
}
809809
}
810+
parent.dir.Children = parent.dir.Children[0 : 2]
810811
}
811812

812813
// LOCKS_EXCLUDED(parent.fs.mu)

0 commit comments

Comments
 (0)