1
1
mirror of https://github.com/go-gitea/gitea synced 2024-10-31 15:24:25 +00:00
gitea/modules/storage
zeripath ca55e49cc0
Retry rename on lock induced failures (#16435) (#16439)
Backport #16435

Due to external locking on Windows it is possible for an
os.Rename to fail if the files or directories are being
used elsewhere.

This PR simply suggests retrying the rename again similar
to how we handle the os.Remove problems.

Fix #16427

Signed-off-by: Andrew Thornton <art27@cantab.net>
Co-authored-by: techknowlogick <techknowlogick@gitea.io>

Co-authored-by: techknowlogick <techknowlogick@gitea.io>
2021-07-15 22:57:51 +03:00
..
helper.go Migrate to use jsoniter instead of encoding/json (#14841) 2021-03-01 22:08:10 +01:00
local.go Retry rename on lock induced failures (#16435) (#16439) 2021-07-15 22:57:51 +03:00
minio.go Add size to Save function (#15264) (#15270) 2021-04-04 12:04:55 -04:00
storage.go Add size to Save function (#15264) (#15270) 2021-04-04 12:04:55 -04:00