From 11b0a9cb76b0228cea34d6dc353103bb4a739f50 Mon Sep 17 00:00:00 2001 From: Chris Lu Date: Tue, 13 Nov 2018 23:53:17 -0800 Subject: fix possible error when reusing file handles --- weed/filesys/filehandle.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'weed/filesys/filehandle.go') diff --git a/weed/filesys/filehandle.go b/weed/filesys/filehandle.go index cc2c070eb..b15aa68d9 100644 --- a/weed/filesys/filehandle.go +++ b/weed/filesys/filehandle.go @@ -163,7 +163,7 @@ func (fh *FileHandle) Release(ctx context.Context, req *fuse.ReleaseRequest) err glog.V(4).Infof("%v release fh %d", fh.f.fullpath(), fh.handle) - fh.f.wfs.ReleaseHandle(fuse.HandleID(fh.handle)) + fh.f.wfs.ReleaseHandle(fh.f.fullpath(), fuse.HandleID(fh.handle)) fh.f.isOpen = false -- cgit v1.2.3