multiple fixes
* adjust isOpen count * move ContinuousDirtyPages lock to filehandle * fix problem with MergeIntoVisibles, avoid reusing slices * let filer delete the garbage
This commit is contained in:
@@ -15,7 +15,7 @@ type Node struct {
|
||||
|
||||
type BoundedTree struct {
|
||||
root *Node
|
||||
sync.Mutex
|
||||
sync.RWMutex
|
||||
}
|
||||
|
||||
func NewBoundedTree() *BoundedTree {
|
||||
@@ -131,6 +131,9 @@ func (n *Node) getChild(childName string) *Node {
|
||||
|
||||
func (t *BoundedTree) HasVisited(p util.FullPath) bool {
|
||||
|
||||
t.RLock()
|
||||
defer t.RUnlock()
|
||||
|
||||
if t.root == nil {
|
||||
return true
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user