Browse Source

rename: handle hard links

original_weed_mount
chrislu 3 years ago
parent
commit
b05962b90e
  1. 6
      weed/filer/filerstore_hardlink.go

6
weed/filer/filerstore_hardlink.go

@ -9,13 +9,17 @@ import (
)
func (fsw *FilerStoreWrapper) handleUpdateToHardLinks(ctx context.Context, entry *Entry) error {
if len(entry.HardLinkId) == 0 {
if entry.IsDirectory() {
return nil
}
if len(entry.HardLinkId) > 0 {
// handle hard links
if err := fsw.setHardLink(ctx, entry); err != nil {
return fmt.Errorf("setHardLink %d: %v", entry.HardLinkId, err)
}
}
// check what is existing entry
glog.V(4).Infof("handleUpdateToHardLinks FindEntry %s", entry.FullPath)

Loading…
Cancel
Save