aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChris Lu <chris.lu@gmail.com>2013-10-16 08:39:09 -0700
committerChris Lu <chris.lu@gmail.com>2013-10-16 08:39:09 -0700
commit59ded34b830c693c985f1570a5cc16d37e39d2e5 (patch)
treea226815cfcb68c97e750e823caaaea239518fe46
parent030905714b2fb1bfa72f3f2770b9ce5e1b045c5d (diff)
downloadseaweedfs-59ded34b830c693c985f1570a5cc16d37e39d2e5.tar.xz
seaweedfs-59ded34b830c693c985f1570a5cc16d37e39d2e5.zip
issue 48 weed upload does not set the modified date
-rw-r--r--go/storage/needle.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/go/storage/needle.go b/go/storage/needle.go
index 24b34c32e..71c8d3d98 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)