cache: update internal tests and small fixes
This commit is contained in:
parent
334ef28012
commit
c0f772bc14
5 changed files with 455 additions and 503 deletions
2
backend/cache/object.go
vendored
2
backend/cache/object.go
vendored
|
@ -256,6 +256,8 @@ func (o *Object) Update(in io.Reader, src fs.ObjectInfo, options ...fs.OpenOptio
|
|||
|
||||
// deleting cached chunks and info to be replaced with new ones
|
||||
_ = o.CacheFs.cache.RemoveObject(o.abs())
|
||||
// advertise to ChangeNotify if wrapped doesn't do that
|
||||
o.CacheFs.notifyChangeUpstreamIfNeeded(o.Remote(), fs.EntryObject)
|
||||
|
||||
o.CacheModTime = src.ModTime().UnixNano()
|
||||
o.CacheSize = src.Size()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue