aboutsummaryrefslogtreecommitdiff
path: root/go
diff options
context:
space:
mode:
authorchrislusf <chris.lu@gmail.com>2015-07-17 19:30:25 -0700
committerchrislusf <chris.lu@gmail.com>2015-07-17 19:30:25 -0700
commit320e946d5019b568c5877125681363d580a8593b (patch)
tree54ba8e95eb7f3344d295a7326f3e48ae12ae414b /go
parentc4897df09c843be7315eecaf0cbf6e6aa0b30931 (diff)
downloadseaweedfs-320e946d5019b568c5877125681363d580a8593b.tar.xz
seaweedfs-320e946d5019b568c5877125681363d580a8593b.zip
fix ttl change detection
https://github.com/chrislusf/seaweedfs/issues/166
Diffstat (limited to '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 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 {