Browse Source

remove unused function

pull/1445/head
Chris Lu 4 years ago
parent
commit
f48567c5c6
  1. 3
      weed/filesys/dirty_page.go
  2. 1
      weed/filesys/filehandle.go

3
weed/filesys/dirty_page.go

@ -25,9 +25,6 @@ func newDirtyPages(file *File) *ContinuousDirtyPages {
}
}
func (pages *ContinuousDirtyPages) releaseResource() {
}
var counter = int32(0)
func (pages *ContinuousDirtyPages) AddPage(offset int64, data []byte) (chunks []*filer_pb.FileChunk, err error) {

1
weed/filesys/filehandle.go

@ -166,7 +166,6 @@ func (fh *FileHandle) Release(ctx context.Context, req *fuse.ReleaseRequest) err
if fh.f.isOpen <= 0 {
fh.doFlush(ctx, req.Header)
fh.dirtyPages.releaseResource()
fh.f.wfs.ReleaseHandle(fh.f.fullpath(), fuse.HandleID(fh.handle))
fh.f.entryViewCache = nil
fh.f.reader = nil

Loading…
Cancel
Save