diff options
| author | chrislusf <chris.lu@gmail.com> | 2015-07-17 19:30:25 -0700 |
|---|---|---|
| committer | chrislusf <chris.lu@gmail.com> | 2015-07-17 19:30:25 -0700 |
| commit | 320e946d5019b568c5877125681363d580a8593b (patch) | |
| tree | 54ba8e95eb7f3344d295a7326f3e48ae12ae414b | |
| parent | c4897df09c843be7315eecaf0cbf6e6aa0b30931 (diff) | |
| download | seaweedfs-320e946d5019b568c5877125681363d580a8593b.tar.xz seaweedfs-320e946d5019b568c5877125681363d580a8593b.zip | |
fix ttl change detection
https://github.com/chrislusf/seaweedfs/issues/166
| -rw-r--r-- | go/storage/volume.go | 2 |
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 { |
