1
1
mirror of https://github.com/go-gitea/gitea synced 2024-12-25 10:04:27 +00:00
gitea/modules/storage
zeripath 5cb5101720
Close storage objects before cleaning (#16934) (#16942)
Backport #16934

Storage.Iterate provides the path and an open object. On windows using
local storage means that the objects will be locked thus preventing clean
from deleting them.

This PR simply closes the objects early.

Fix #16932

Signed-off-by: Andrew Thornton <art27@cantab.net>
2021-09-03 12:17:07 +01:00
..
helper.go Code Formats, Nits & Unused Func/Var deletions (#15286) 2021-04-09 09:40:34 +02:00
local.go Retry rename on lock induced failures (#16435) 2021-07-15 11:46:07 -04:00
minio.go Add size to Save function (#15264) 2021-04-03 18:19:59 +02:00
storage.go Close storage objects before cleaning (#16934) (#16942) 2021-09-03 12:17:07 +01:00