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
..
2020-05-29 09:20:01 +03:00
2020-12-25 20:02:52 +08:00
2020-10-14 21:07:51 +08:00
2020-12-19 00:19:43 +08:00
2020-09-28 00:09:46 +03:00
2020-08-23 14:15:29 +01:00
2020-11-15 16:29:16 +00:00
2020-10-05 12:07:54 +08:00
2020-10-10 20:38:09 -04:00
2020-07-25 16:40:04 +03:00
2020-07-03 10:55:36 +01:00
2020-04-05 07:20:50 +01:00
2021-03-04 19:53:28 +08:00
2020-08-06 09:04:08 +01:00
2020-09-02 23:37:49 +01:00
2020-10-02 23:37:53 -04:00
2020-11-13 18:05:51 -05:00
2019-06-12 15:41:28 -04:00
2020-09-14 13:40:07 +03:00
2021-03-07 00:53:37 +02:00
2020-10-11 21:27:20 +01:00
2021-01-20 20:47:30 +02:00
2020-12-01 19:28:34 -05:00
2018-11-04 22:20:00 -05:00
2021-02-28 15:19:51 +02:00
2020-09-28 00:09:46 +03:00
2021-01-03 15:44:40 +02:00
2020-04-03 22:29:12 +03:00
2020-09-08 17:06:39 -05:00
2019-06-12 15:41:28 -04:00
2020-08-30 08:24:39 +01:00
2020-06-13 17:47:31 -04:00
2021-01-02 18:52:36 +08:00
2021-02-14 01:50:50 +01:00
2020-10-02 23:37:53 -04:00
2020-11-09 21:16:34 -05:00
2020-10-14 07:49:33 +03:00
2021-01-19 00:27:33 +02:00
2020-10-05 01:49:33 -04:00
2020-09-28 00:09:46 +03:00
2021-02-13 21:19:33 +01:00
2021-01-30 21:57:31 +02:00
2021-03-06 05:07:03 +01:00
2021-01-19 00:27:33 +02:00
2020-07-13 21:16:40 +01:00
2020-01-15 23:58:33 +02:00
2020-12-02 15:11:11 -06:00
2021-03-06 06:13:38 +01:00
2020-08-27 22:47:17 -04:00
2021-03-03 21:17:34 +00:00
2020-10-11 21:27:20 +01:00
2020-04-05 07:20:50 +01:00
2020-10-11 21:27:20 +01:00
2020-04-07 22:54:46 -04:00
2020-12-11 16:11:32 +01:00