aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorchrislu <chris.lu@gmail.com>2022-02-25 02:56:23 -0800
committerchrislu <chris.lu@gmail.com>2022-02-25 02:56:23 -0800
commit8080fe4cc19cd2d0479b605ae7ad7993a5bcf50a (patch)
treefedcf704157231810d29fe6560f4b2cd59f39375
parente4235486737ae79884659a028668d44aa01b83ae (diff)
downloadseaweedfs-8080fe4cc19cd2d0479b605ae7ad7993a5bcf50a.tar.xz
seaweedfs-8080fe4cc19cd2d0479b605ae7ad7993a5bcf50a.zip
logs
-rw-r--r--weed/filer/filerstore_hardlink.go5
1 files changed, 4 insertions, 1 deletions
diff --git a/weed/filer/filerstore_hardlink.go b/weed/filer/filerstore_hardlink.go
index 64f41aaba..5efc3d9c0 100644
--- a/weed/filer/filerstore_hardlink.go
+++ b/weed/filer/filerstore_hardlink.go
@@ -50,6 +50,8 @@ func (fsw *FilerStoreWrapper) setHardLink(ctx context.Context, entry *Entry) err
return encodeErr
}
+ glog.V(4).Infof("setHardLink %v nlink:%d", entry.FullPath, entry.HardLinkCounter)
+
return fsw.KvPut(ctx, key, newBlob)
}
@@ -59,7 +61,6 @@ func (fsw *FilerStoreWrapper) maybeReadHardLink(ctx context.Context, entry *Entr
}
key := entry.HardLinkId
- glog.V(4).Infof("maybeReadHardLink KvGet %v", key)
value, err := fsw.KvGet(ctx, key)
if err != nil {
glog.Errorf("read %s hardlink %d: %v", entry.FullPath, entry.HardLinkId, err)
@@ -71,6 +72,8 @@ func (fsw *FilerStoreWrapper) maybeReadHardLink(ctx context.Context, entry *Entr
return err
}
+ glog.V(4).Infof("maybeReadHardLink %v nlink:%d", entry.FullPath, entry.HardLinkCounter)
+
return nil
}