1
0
mirror of https://github.com/go-gitea/gitea.git synced 2024-12-04 14:46:57 -05:00
gitea/modules/lfs
zeripath 8dad47a94a
Fix race in LFS ContentStore.Put(...) (#14895) (#14913)
Backport #14895

Continuing on from #14888

The previous implementation has race whereby an incomplete upload or
hash mismatch upload can end up in the ContentStore. This PR moves the
validation into the reader so that if there is a hash error or size
mismatch the reader will return with an error instead of an io.EOF
causing the storage to abort the storage.

Signed-off-by: Andrew Thornton <art27@cantab.net>
2021-03-07 00:53:37 +02:00
..
content_store.go Fix race in LFS ContentStore.Put(...) (#14895) (#14913) 2021-03-07 00:53:37 +02:00
LICENSE Git LFS support v2 (#122) 2016-12-26 09:16:37 +08:00
locks.go Multiple LFS improvements (#10667) 2020-03-09 19:56:18 +00:00
pointers.go LFS support to be stored on minio (#12518) 2020-09-08 23:45:10 +08:00
server.go Storage configuration support [storage] (#13314) (#13379) 2020-11-01 23:12:50 +08:00