# fix: open a section's cache another thread created meanwhile · clo/snowbound

[View on GitCafe](https://git.cafe/clo/snowbound/commit/932ef789ec44c35ed71fda1ec07adcd7365eb416)

Repository: [clo/snowbound](https://git.cafe/clo/snowbound)

Visibility: public

Requested revision: 932ef789ec44c35ed71fda1ec07adcd7365eb416

Requested commit: 932ef789ec44c35ed71fda1ec07adcd7365eb416

Commit: 932ef789ec44c35ed71fda1ec07adcd7365eb416

Tree: 91eda547cbe0830d5cfbb7910755c7cd14c4c61d

Author: clover caruso

Committer: clover caruso

## Message

```
fix: open a section's cache another thread created meanwhile

A section opening as its notebook first opened could fail with "File
exists": the cache was checked, then created, while the background made
the same section's offline copy. Replica::open_or_create opens a cache
created meanwhile instead, and every opening path goes through it.

Assisted-by: claude-opus-5.5

```

## Parents

- [23a1ac633199364044fafb816fa6026524ff62f7](https://git.cafe/clo/snowbound/commit/23a1ac633199364044fafb816fa6026524ff62f7?format=markdown)

[Source at this commit](https://git.cafe/clo/snowbound/tree/932ef789ec44c35ed71fda1ec07adcd7365eb416?format=markdown)
