From 430f371a97f981af4f3cee918e3c96d89b5fedc5 Mon Sep 17 00:00:00 2001 From: chrislusf Date: Sat, 11 Jul 2015 12:20:39 -0700 Subject: [PATCH] fix wrong logic --- go/storage/volume.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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)