mirror of
https://github.com/seaweedfs/seaweedfs.git
synced 2025-06-28 15:41:13 +08:00
Fix TTL Behavior for Directories in Path-Specific Configuration (#6827)
This commit is contained in:
parent
9ffc8bcb54
commit
ee0c14673d
@ -197,6 +197,10 @@ func (f *Filer) CreateEntry(ctx context.Context, entry *Entry, o_excl bool, isFr
|
|||||||
return fmt.Errorf("entry name too long")
|
return fmt.Errorf("entry name too long")
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if entry.IsDirectory() {
|
||||||
|
entry.Attr.TtlSec = 0
|
||||||
|
}
|
||||||
|
|
||||||
oldEntry, _ := f.FindEntry(ctx, entry.FullPath)
|
oldEntry, _ := f.FindEntry(ctx, entry.FullPath)
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
Loading…
Reference in New Issue
Block a user