Commit d2ed60f
committed
block for lock on second codebase open
the transcript.inplace runner seems to open the codebase for migrations,
then opens it a second time to tun the actual transcript. there seems to
be a race condition in which releasing the lock the first time doesn't
actually block for the lock to be released; and in fact it doesn't seem
to be released in time to acquire the lock the second time, and we were
seeing crashes in CI as a result.
there were a few other places where it looked like it might be fine and
good (though not necessary) to also block for the lock, but i left them
out in order to have a more surgical PR.1 parent 10e5e73 commit d2ed60f
File tree
3 files changed
+10
-2
lines changed- parser-typechecker/src/Unison/Codebase
- unison-cli/src/Unison
3 files changed
+10
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
49 | 49 | | |
50 | 50 | | |
51 | 51 | | |
| 52 | + | |
| 53 | + | |
52 | 54 | | |
53 | 55 | | |
54 | 56 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
14 | 14 | | |
15 | 15 | | |
16 | 16 | | |
17 | | - | |
| 17 | + | |
18 | 18 | | |
19 | 19 | | |
20 | 20 | | |
| |||
322 | 322 | | |
323 | 323 | | |
324 | 324 | | |
| 325 | + | |
| 326 | + | |
| 327 | + | |
| 328 | + | |
| 329 | + | |
| 330 | + | |
325 | 331 | | |
326 | 332 | | |
327 | 333 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
515 | 515 | | |
516 | 516 | | |
517 | 517 | | |
518 | | - | |
| 518 | + | |
519 | 519 | | |
520 | 520 | | |
521 | 521 | | |
| |||
0 commit comments