mirror of
https://github.com/seaweedfs/seaweedfs.git
synced 2025-10-21 17:37:23 +08:00
fix wrong logic
This commit is contained in:
@@ -152,7 +152,7 @@ func (v *Volume) NeedToReplicate() bool {
|
|||||||
// isFileUnchanged checks whether this needle to write is same as last one.
|
// isFileUnchanged checks whether this needle to write is same as last one.
|
||||||
// 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 == EMPTY_TTL || v.Ttl.String() == "" {
|
if v.Ttl.String() != "" {
|
||||||
return true
|
return true
|
||||||
}
|
}
|
||||||
nv, ok := v.nm.Get(n.Id)
|
nv, ok := v.nm.Get(n.Id)
|
||||||
|
Reference in New Issue
Block a user