aboutsummaryrefslogtreecommitdiff
path: root/go/storage/volume.go
diff options
context:
space:
mode:
authorchrislusf <chris.lu@gmail.com>2015-07-11 12:20:39 -0700
committerchrislusf <chris.lu@gmail.com>2015-07-11 12:20:39 -0700
commit430f371a97f981af4f3cee918e3c96d89b5fedc5 (patch)
treec7be59c6e619a347cd132a6f69743b09d0114958 /go/storage/volume.go
parent9b8f8f4bb9f71c349b84333dcb4e222f1a5b95c3 (diff)
downloadseaweedfs-430f371a97f981af4f3cee918e3c96d89b5fedc5.tar.xz
seaweedfs-430f371a97f981af4f3cee918e3c96d89b5fedc5.zip
fix wrong logic
Diffstat (limited to 'go/storage/volume.go')
-rw-r--r--go/storage/volume.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/go/storage/volume.go b/go/storage/volume.go
index 998b0dd64..332ad2911 100644
--- a/go/storage/volume.go
+++ b/go/storage/volume.go
@@ -152,7 +152,7 @@ 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() == "" {
+ if v.Ttl.String() != "" {
return true
}
nv, ok := v.nm.Get(n.Id)