diff options
| author | Chris Lu <chris.lu@gmail.com> | 2014-09-20 20:51:24 -0700 |
|---|---|---|
| committer | Chris Lu <chris.lu@gmail.com> | 2014-09-20 20:51:24 -0700 |
| commit | 7920b4685e41407c3bcc64fd22579cfe0f27bda8 (patch) | |
| tree | d22d4f6a8739ef990aebde857b8dfa31dcd6221f /go/storage/needle.go | |
| parent | f7094d7a99f73db855f59afafbf6e1dd276ba394 (diff) | |
| download | seaweedfs-7920b4685e41407c3bcc64fd22579cfe0f27bda8.tar.xz seaweedfs-7920b4685e41407c3bcc64fd22579cfe0f27bda8.zip | |
Adding unit tests for volume ttl.
Diffstat (limited to 'go/storage/needle.go')
| -rw-r--r-- | go/storage/needle.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/go/storage/needle.go b/go/storage/needle.go index 3bf627141..51079376a 100644 --- a/go/storage/needle.go +++ b/go/storage/needle.go @@ -118,7 +118,7 @@ func NewNeedle(r *http.Request, fixJpgOrientation bool) (n *Needle, e error) { n.LastModified = uint64(time.Now().Unix()) } n.SetHasLastModifiedDate() - if n.Ttl != nil { + if n.Ttl != EMPTY_TTL { n.SetHasTtl() } |
