mirror of
https://github.com/seaweedfs/seaweedfs.git
synced 2025-10-21 15:17:25 +08:00
fix ttl change detection
https://github.com/chrislusf/seaweedfs/issues/166
This commit is contained in:
@@ -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 {
|
||||||
|
Reference in New Issue
Block a user