use append time instead of filer's own modification time
fix https://github.com/chrislusf/seaweedfs/issues/1669
This commit is contained in:
@@ -322,7 +322,7 @@ func (v *Volume) readNeedle(n *needle.Needle, readOption *ReadOption) (int, erro
|
|||||||
if !n.HasLastModifiedDate() {
|
if !n.HasLastModifiedDate() {
|
||||||
return bytesRead, nil
|
return bytesRead, nil
|
||||||
}
|
}
|
||||||
if uint64(time.Now().Unix()) < n.LastModified+uint64(ttlMinutes*60) {
|
if time.Now().Before(time.Unix(0, int64(n.AppendAtNs)).Add(time.Duration(ttlMinutes) * time.Minute)) {
|
||||||
return bytesRead, nil
|
return bytesRead, nil
|
||||||
}
|
}
|
||||||
return -1, ErrorNotFound
|
return -1, ErrorNotFound
|
||||||
|
|||||||
Reference in New Issue
Block a user