aboutsummaryrefslogtreecommitdiff
path: root/weed/filesys
diff options
context:
space:
mode:
authorChris Lu <chris.lu@gmail.com>2021-11-02 23:39:16 -0700
committerChris Lu <chris.lu@gmail.com>2021-11-02 23:39:16 -0700
commit0c8dea9de8dffa2e2cc252cdab7112a3664b3a09 (patch)
tree3c0cfd3cbe04c9a74059be5dc9725d00725afa0c /weed/filesys
parent5160eb08f7665409221ebb0b9db6f4820e29bed3 (diff)
downloadseaweedfs-0c8dea9de8dffa2e2cc252cdab7112a3664b3a09.tar.xz
seaweedfs-0c8dea9de8dffa2e2cc252cdab7112a3664b3a09.zip
go fmt
Diffstat (limited to 'weed/filesys')
-rw-r--r--weed/filesys/dir_rename.go3
1 files changed, 1 insertions, 2 deletions
diff --git a/weed/filesys/dir_rename.go b/weed/filesys/dir_rename.go
index d2288e3bd..8a80559f6 100644
--- a/weed/filesys/dir_rename.go
+++ b/weed/filesys/dir_rename.go
@@ -67,7 +67,6 @@ func (dir *Dir) Rename(ctx context.Context, req *fuse.RenameRequest, newDirector
return nil
}
-
func (dir *Dir) handleRenameResponse(ctx context.Context, resp *filer_pb.StreamRenameEntryResponse) error {
// comes from filer StreamRenameEntry, can only be create or delete entry
@@ -119,7 +118,7 @@ func (dir *Dir) handleRenameResponse(ctx context.Context, resp *filer_pb.StreamR
}
dir.wfs.handlesLock.Unlock()
- }else if resp.EventNotification.OldEntry != nil {
+ } else if resp.EventNotification.OldEntry != nil {
// without new entry, only old entry name exists. This is the second step to delete old entry
if err := dir.wfs.metaCache.AtomicUpdateEntryFromFiler(ctx, util.NewFullPath(resp.Directory, resp.EventNotification.OldEntry.Name), nil); err != nil {
return err