Commit b1521686 authored by Kirill Smelkov's avatar Kirill Smelkov

.

parent af422610
...@@ -2076,7 +2076,7 @@ func (bfdir *BigFileDir) lookup(out *fuse.Attr, name string, fctx *fuse.Context) ...@@ -2076,7 +2076,7 @@ func (bfdir *BigFileDir) lookup(out *fuse.Attr, name string, fctx *fuse.Context)
f2, already := bfdir.fileTab[oid] f2, already := bfdir.fileTab[oid]
if already { if already {
bfdir.fileMu.Unlock() bfdir.fileMu.Unlock()
f.Close() // no need to f.Close() - BigFile is all just garbage-collected
return f2, nil return f2, nil
} }
...@@ -2240,17 +2240,6 @@ func (head *Head) bigfopen(ctx context.Context, oid zodb.Oid) (_ *BigFile, err e ...@@ -2240,17 +2240,6 @@ func (head *Head) bigfopen(ctx context.Context, oid zodb.Oid) (_ *BigFile, err e
return f, nil return f, nil
} }
// Close release all resources of BigFile. XXX needed?
func (f *BigFile) Close() error {
// XXX locking?
f.zfile = nil
// f.zconn.Release()
// f.zconn = nil
f.head = nil
return nil
}
// ---- misc --- // ---- misc ---
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment