mirror of
https://github.com/seaweedfs/seaweedfs.git
synced 2024-01-19 02:48:24 +00:00
issue 48 weed upload does not set the modified date
This commit is contained in:
parent
030905714b
commit
59ded34b83
|
@ -111,8 +111,8 @@ func NewNeedle(r *http.Request) (n *Needle, e error) {
|
||||||
}
|
}
|
||||||
if n.LastModified == 0 {
|
if n.LastModified == 0 {
|
||||||
n.LastModified = uint64(time.Now().Unix())
|
n.LastModified = uint64(time.Now().Unix())
|
||||||
n.SetHasLastModifiedDate()
|
|
||||||
}
|
}
|
||||||
|
n.SetHasLastModifiedDate()
|
||||||
|
|
||||||
n.Checksum = NewCRC(n.Data)
|
n.Checksum = NewCRC(n.Data)
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue