diff options
| author | Chris Lu <chris.lu@gmail.com> | 2020-12-21 21:46:32 -0800 |
|---|---|---|
| committer | Chris Lu <chris.lu@gmail.com> | 2020-12-21 21:46:32 -0800 |
| commit | 8ab70ccf767a62af10142b1e05435467fc66278c (patch) | |
| tree | cb6d8a90883143210ddf44d0727ad4292f526522 | |
| parent | 65cc6dc6360950c70e3d2a3f9d65ce05c7e75344 (diff) | |
| download | seaweedfs-8ab70ccf767a62af10142b1e05435467fc66278c.tar.xz seaweedfs-8ab70ccf767a62af10142b1e05435467fc66278c.zip | |
refactor
| -rw-r--r-- | weed/filer/filerstore_hardlink.go | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/weed/filer/filerstore_hardlink.go b/weed/filer/filerstore_hardlink.go index 144b7286e..316c76a0c 100644 --- a/weed/filer/filerstore_hardlink.go +++ b/weed/filer/filerstore_hardlink.go @@ -19,7 +19,8 @@ func (fsw *FilerStoreWrapper) handleUpdateToHardLinks(ctx context.Context, entry // check what is existing entry glog.V(4).Infof("handleUpdateToHardLinks FindEntry %s", entry.FullPath) - existingEntry, err := fsw.getActualStore(entry.FullPath).FindEntry(ctx, entry.FullPath) + actualStore := fsw.getActualStore(entry.FullPath) + existingEntry, err := actualStore.FindEntry(ctx, entry.FullPath) if err != nil && err != filer_pb.ErrNotFound { return fmt.Errorf("update existing entry %s: %v", entry.FullPath, err) } |
