| ... | @@ -422,7 +422,11 @@ pub const Manifest = struct { | ... | @@ -422,7 +422,11 @@ pub const Manifest = struct { |
| 422 | self.have_exclusive_lock = true; | 422 | self.have_exclusive_lock = true; |
| 423 | return false; // cache miss; exclusive lock already held | 423 | return false; // cache miss; exclusive lock already held |
| 424 | } else |err| switch (err) { | 424 | } else |err| switch (err) { |
| 425 | error.WouldBlock => continue, | 425 | // There are no dir components, so you would think |
| | 426 | // that this was unreachable, however we have |
| | 427 | // observed on macOS two processes racing to do |
| | 428 | // openat() with O_CREAT manifest in ENOENT. |
| | 429 | error.WouldBlock, error.FileNotFound => continue, |
| 426 | else => |e| return e, | 430 | else => |e| return e, |
| 427 | } | 431 | } |
| 428 | }, | 432 | }, |