From 320e946d5019b568c5877125681363d580a8593b Mon Sep 17 00:00:00 2001 From: chrislusf Date: Fri, 17 Jul 2015 19:30:25 -0700 Subject: [PATCH] fix ttl change detection https://github.com/chrislusf/seaweedfs/issues/166 --- 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 332ad2911..5c6b12e9b 100644 --- a/go/storage/volume.go +++ b/go/storage/volume.go @@ -153,7 +153,7 @@ func (v *Volume) NeedToReplicate() bool { // It requires serialized access in the same volume. func (v *Volume) isFileUnchanged(n *Needle) bool { if v.Ttl.String() != "" { - return true + return false } nv, ok := v.nm.Get(n.Id) if ok && nv.Offset > 0 {