Skip to content

SeaweedFS is a distributed storage system for object storage (S3), file systems, Iceberg table buckets, and Lance vector buckets, designed to handle billions of files with O(1) disk access and effortless horizontal scaling.

fix compilation

Chris Lu090612492cba
diff --git a/weed/filesys/dir_rename.go b/weed/filesys/dir_rename.go
index 573706b21e..c2ff6f4073 100644
--- a/weed/filesys/dir_rename.go
+++ b/weed/filesys/dir_rename.go
@@ -64,8 +64,8 @@ func (dir *Dir) Rename(ctx context.Context, req *fuse.RenameRequest, newDirector
// fmt.Printf("rename path: %v => %v\n", oldPath, newPath)
dir.wfs.fsNodeCache.Move(oldPath, newPath)
- wfs.handlesLock.Lock()
- defer wfs.handlesLock.Unlock()
+ dir.wfs.handlesLock.Lock()
+ defer dir.wfs.handlesLock.Unlock()
delete(dir.wfs.handles, oldPath.AsInode())
return err