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.

issue 48 weed upload does not set the modified date

Chris Lu59ded34b830c
diff --git a/go/storage/needle.go b/go/storage/needle.go
index 24b34c32e2..71c8d3d98b 100644
--- a/go/storage/needle.go
+++ b/go/storage/needle.go
@@ -111,8 +111,8 @@ func NewNeedle(r *http.Request) (n *Needle, e error) {
}
if n.LastModified == 0 {
n.LastModified = uint64(time.Now().Unix())
- n.SetHasLastModifiedDate()
}
+ n.SetHasLastModifiedDate()
n.Checksum = NewCRC(n.Data)