Jacob Young
fae6290387
Cache: fix race condition
...
When checking a cache entry with no input files for a hit, if
`createFile` returned `error.WouldBlock` we would forget about the fact
that the file has been created, and all future checks will assume that a
cache hit has happened, even though one never has or does, leading to
rare `FileNotFound` errors trying the access the protected files.
This fix works by writing an extra byte to the manifest file to
distinguish hits and misses when there no input files to write.
2023-05-11 00:55:40 -04:00
..
2023-04-30 18:16:04 -07:00
2023-05-11 00:55:40 -04:00
2023-05-10 19:14:51 +03:00
2023-04-30 18:16:04 -07:00
2023-05-09 14:47:04 -07:00
2022-05-09 18:51:46 +02:00
2023-04-30 18:16:04 -07:00
2023-05-08 10:42:24 +00:00
2023-04-30 18:16:04 -07:00
2023-04-28 13:24:43 -07:00
2023-04-30 18:16:04 -07:00
2023-04-28 13:24:43 -07:00
2023-05-08 10:59:06 +03:00
2023-04-28 13:24:43 -07:00
2023-05-10 16:01:17 +03:00
2023-04-28 13:24:43 -07:00
2023-04-12 12:06:19 -04:00
2023-05-08 10:59:06 +03:00
2023-05-03 08:37:40 +03:00
2023-04-28 13:24:43 -07:00
2023-05-08 07:36:20 -04:00
2023-04-28 13:24:43 -07:00
2023-04-30 18:16:04 -07:00
2021-12-16 19:08:58 -08:00
2022-01-01 12:47:08 +00:00
2022-12-13 13:14:20 +02:00
2023-04-30 18:16:04 -07:00
2023-05-08 10:59:06 +03:00
2023-04-28 13:24:43 -07:00
2023-04-28 13:24:43 -07:00
2023-02-18 19:17:21 -07:00
2023-04-21 23:08:48 -04:00
2023-04-28 13:24:43 -07:00
2023-04-28 13:24:43 -07:00
2023-04-28 13:24:43 -07:00
2023-04-22 13:09:15 +03:00
2023-04-28 13:24:43 -07:00
2023-05-03 20:55:29 -07:00
2023-04-30 18:16:04 -07:00
2023-03-15 10:48:13 -07:00
2023-04-30 18:16:04 -07:00
2023-02-18 19:17:21 -07:00
2023-02-22 00:11:20 +11:00
2023-04-22 13:55:30 +03:00
2023-04-21 19:52:33 +00:00
2023-04-28 13:24:43 -07:00
2023-04-28 13:24:43 -07:00
2023-04-20 15:17:07 -07:00
2023-04-28 13:24:43 -07:00
2023-05-07 09:09:19 +02:00
2023-05-10 16:15:41 +03:00
2021-09-01 17:54:06 -07:00
2023-04-28 13:24:43 -07:00
2023-05-10 20:11:18 +03:00
2023-05-09 14:24:20 +03:00
2023-05-08 10:59:06 +03:00
2023-04-21 23:08:48 -04:00
2023-04-30 18:16:04 -07:00
2023-04-30 18:16:04 -07:00
2023-01-11 15:39:48 -08:00
2023-03-25 21:32:55 -04:00
2023-04-30 18:16:04 -07:00
2022-12-27 15:13:14 +02:00
2023-04-30 18:16:04 -07:00
2023-05-03 11:19:37 +03:00
2023-04-30 18:16:04 -07:00
2023-04-23 21:06:21 +03:00
2023-05-10 17:47:58 +03:00
2023-05-10 16:00:14 +03:00
2023-04-28 13:24:43 -07:00
2023-04-28 13:24:43 -07:00
2023-02-18 19:17:21 -07:00
2023-05-05 19:52:05 +03:00
2023-04-30 18:16:04 -07:00
2023-04-30 18:16:04 -07:00
2023-05-08 10:59:06 +03:00
2023-02-18 19:17:21 -07:00
2023-04-28 13:24:43 -07:00
2023-04-28 13:24:43 -07:00
2023-04-23 21:06:21 +03:00
2023-04-23 21:06:21 +03:00
2023-04-28 13:24:43 -07:00
2022-12-09 21:57:17 +01:00
2023-04-30 18:16:04 -07:00
2023-04-28 13:24:43 -07:00
2023-01-29 15:04:13 -05:00
2023-05-01 19:22:52 -04:00
2023-03-17 17:50:25 +01:00
2023-04-28 13:24:43 -07:00
2023-04-28 13:24:43 -07:00
2023-02-18 19:17:21 -07:00
2023-04-30 18:16:04 -07:00
2023-04-30 18:16:04 -07:00
2022-04-15 17:01:01 -05:00
2023-04-28 13:24:43 -07:00
2023-04-12 12:06:19 -04:00
2023-04-23 21:06:21 +03:00
2022-11-19 19:32:45 -07:00
2023-03-18 20:13:30 +01:00
2023-03-15 10:48:13 -07:00