mirror of
https://github.com/seaweedfs/seaweedfs.git
synced 2024-01-19 02:48:24 +00:00
fix ttl change detection
https://github.com/chrislusf/seaweedfs/issues/166
This commit is contained in:
parent
c4897df09c
commit
320e946d50
|
@ -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 {
|
||||
|
|
Loading…
Reference in a new issue