Skip to content

SeaweedFS is a distributed storage system for object storage (S3), file systems, Iceberg table buckets, and Lance vector buckets, designed to handle billions of files with O(1) disk access and effortless horizontal scaling.

skip isFileUnchanged checking since ttl always change

chrislusf2c595d2d1662
diff --git a/go/storage/volume.go b/go/storage/volume.go
index 0e6cadecc0..998b0dd64e 100644
--- a/go/storage/volume.go
+++ b/go/storage/volume.go
@@ -152,6 +152,9 @@ func (v *Volume) NeedToReplicate() bool {
// isFileUnchanged checks whether this needle to write is same as last one.
// It requires serialized access in the same volume.
func (v *Volume) isFileUnchanged(n *Needle) bool {
+ if v.Ttl == EMPTY_TTL || v.Ttl.String() == "" {
+ return true
+ }
nv, ok := v.nm.Get(n.Id)
if ok && nv.Offset > 0 {
oldNeedle := new(Needle)