fix ttl change detection

https://github.com/chrislusf/seaweedfs/issues/166
This commit is contained in:
chrislusf
2015-07-17 19:30:25 -07:00
parent c4897df09c
commit 320e946d50

View File

@@ -153,7 +153,7 @@ func (v *Volume) NeedToReplicate() bool {
// It requires serialized access in the same volume. // It requires serialized access in the same volume.
func (v *Volume) isFileUnchanged(n *Needle) bool { func (v *Volume) isFileUnchanged(n *Needle) bool {
if v.Ttl.String() != "" { if v.Ttl.String() != "" {
return true return false
} }
nv, ok := v.nm.Get(n.Id) nv, ok := v.nm.Get(n.Id)
if ok && nv.Offset > 0 { if ok && nv.Offset > 0 {