Browse Source

refactor

pull/1699/head
Chris Lu 4 years ago
parent
commit
8ab70ccf76
  1. 3
      weed/filer/filerstore_hardlink.go

3
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)
}

|||||||
100:0
Loading…
Cancel
Save