aboutsummaryrefslogtreecommitdiff
path: root/weed/mount
diff options
context:
space:
mode:
authorjang1lee <jang1lee@users.noreply.github.com>2025-03-20 15:11:41 +0900
committerGitHub <noreply@github.com>2025-03-19 23:11:41 -0700
commit4ad669b2aa791cc6e6741606c3bc0c8840fabf99 (patch)
tree4535e70a032966d6db044618a5c1cb8f97e58925 /weed/mount
parentf99a818ad2253fdb3fa74d2bb72f93b68db5c85a (diff)
downloadseaweedfs-4ad669b2aa791cc6e6741606c3bc0c8840fabf99.tar.xz
seaweedfs-4ad669b2aa791cc6e6741606c3bc0c8840fabf99.zip
Fixes files with TTL can not be read in a mounted folder (#6646)
Diffstat (limited to 'weed/mount')
-rw-r--r--weed/mount/meta_cache/meta_cache.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/weed/mount/meta_cache/meta_cache.go b/weed/mount/meta_cache/meta_cache.go
index 803b88f6c..0f0b1de30 100644
--- a/weed/mount/meta_cache/meta_cache.go
+++ b/weed/mount/meta_cache/meta_cache.go
@@ -119,7 +119,7 @@ func (mc *MetaCache) FindEntry(ctx context.Context, fp util.FullPath) (entry *fi
if err != nil {
return nil, err
}
- if entry.TtlSec > 0 && entry.Crtime.Add(time.Duration(entry.TtlSec)).Before(time.Now()) {
+ if entry.TtlSec > 0 && entry.Crtime.Add(time.Duration(entry.TtlSec)*time.Second).Before(time.Now()) {
return nil, filer_pb.ErrNotFound
}
mc.mapIdFromFilerToLocal(entry)