forked from gitea/gitea
1
0
Fork 0
gitea/modules/log
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
..
colors.go Refactor Logger (#13294) 2020-10-31 01:36:46 -04:00
colors_router.go Remove macaron dependent on modules/log (#6933) 2019-05-13 22:55:52 -04:00
conn.go Migrate to use jsoniter instead of encoding/json (#14841) 2021-03-01 22:08:10 +01:00
conn_test.go Migrate to use jsoniter instead of encoding/json (#14841) 2021-03-01 22:08:10 +01:00
console.go Migrate to use jsoniter instead of encoding/json (#14841) 2021-03-01 22:08:10 +01:00
console_test.go Migrate to use jsoniter instead of encoding/json (#14841) 2021-03-01 22:08:10 +01:00
console_windows.go Fix windows build error (#14263) 2021-01-06 09:38:00 +08:00
errors.go Better logging (#6038) (#6095) 2019-04-02 08:48:31 +01:00
event.go Pause, Resume, Release&Reopen, Add and Remove Logging from command line (#11777) 2020-07-05 20:07:07 -04:00
file.go Retry rename on lock induced failures (#16435) (#16439) 2021-07-15 22:57:51 +03:00
file_test.go Re-attempt to delete temporary upload if the file is locked by another process (#12447) 2020-08-11 21:05:34 +01:00
flags.go Log: Ensure FLAGS=none is -1 (#9287) 2019-12-07 23:36:47 -05:00
level.go Migrate to use jsoniter instead of encoding/json (#14841) 2021-03-01 22:08:10 +01:00
level_test.go Migrate to use jsoniter instead of encoding/json (#14841) 2021-03-01 22:08:10 +01:00
log.go Update docs and comments to remove macaron (#14491) 2021-01-29 16:35:30 +01:00
log_test.go Refactor Logger (#13294) 2020-10-31 01:36:46 -04:00
logger.go Refactor Logger (#13294) 2020-10-31 01:36:46 -04:00
multichannel.go Refactor Logger (#13294) 2020-10-31 01:36:46 -04:00
provider.go Better logging (#6038) (#6095) 2019-04-02 08:48:31 +01:00
smtp.go Migrate to use jsoniter instead of encoding/json (#14841) 2021-03-01 22:08:10 +01:00
smtp_test.go Better logging (#6038) (#6095) 2019-04-02 08:48:31 +01:00
stack.go Update golangci-lint to version 1.31.0 (#13102) 2020-10-11 21:27:20 +01:00
writer.go Removed unnecessary conversions (#7557) 2019-07-23 19:50:39 +01:00
writer_test.go Quieter Integration Tests (#6513) 2019-04-07 03:25:14 +03:00