mirror of
https://github.com/distribution/distribution
synced 2024-11-12 05:45:51 +01:00
Merge pull request #111 from ahmetalpbalkan/inmemory-fix
update modtime on WriteAt for inmemory driver
This commit is contained in:
commit
fd37df55ff
@ -299,6 +299,7 @@ func (f *file) WriteAt(p []byte, offset int64) (n int, err error) {
|
||||
f.data = data
|
||||
}
|
||||
|
||||
f.mod = time.Now()
|
||||
f.data = f.data[:off+len(p)]
|
||||
|
||||
return copy(f.data[off:off+len(p)], p), nil
|
||||
|
Loading…
Reference in New Issue
Block a user