# Fix another LockViolation case on Windows \(\#14162\) · gitcafe/zig

[View on GitCafe](https://git.cafe/gitcafe/zig/commit/a3e2ee091139740d076da1176ac8c487ca20a9a6)

Repository: [gitcafe/zig](https://git.cafe/gitcafe/zig)

Visibility: public

Requested revision: a3e2ee091139740d076da1176ac8c487ca20a9a6

Requested commit: a3e2ee091139740d076da1176ac8c487ca20a9a6

Commit: a3e2ee091139740d076da1176ac8c487ca20a9a6

Tree: 9b8c8aaaa8166a7b0f338b0b07755e936c66ec1e

Author: Casey Banner

Committer: GitHub

## Message

```
Fix another LockViolation case on Windows (#14162)

- Add an assert that an exclusive lock is help to writeManifest
- Only call writeManifest in updateCObject if an exclusive lock is held
- cache: fixup test to verify hits don't take an exclusive lock, instead of writing the manifest
```

## Parents

- [9ed4a93ae7244a02071196e8913f43bcc9144c25](https://git.cafe/gitcafe/zig/commit/9ed4a93ae7244a02071196e8913f43bcc9144c25?format=markdown)

[Source at this commit](https://git.cafe/gitcafe/zig/tree/a3e2ee091139740d076da1176ac8c487ca20a9a6?format=markdown)
