mirror of
https://github.com/rclone/rclone.git
synced 2025-08-14 07:49:00 +02:00
cache: update internal tests and small fixes
This commit is contained in:
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()
|
||||
|
Reference in New Issue
Block a user