Commit 7d7c522
committed
fix(metadata): lock metadata file to protect against concurrent access
Cargo may launch concurrent compilation once the rmeta file is generated by
Rust, before the full build completes. This is non-desirable for Klint when
it yet have the chance to finish writing metadata file.
Use sqlite's locking_mode to protect against this race.1 parent 4838a48 commit 7d7c522
1 file changed
Lines changed: 15 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
305 | 305 | | |
306 | 306 | | |
307 | 307 | | |
308 | | - | |
| 308 | + | |
| 309 | + | |
| 310 | + | |
| 311 | + | |
| 312 | + | |
| 313 | + | |
| 314 | + | |
| 315 | + | |
| 316 | + | |
| 317 | + | |
| 318 | + | |
| 319 | + | |
| 320 | + | |
| 321 | + | |
| 322 | + | |
309 | 323 | | |
310 | 324 | | |
311 | 325 | | |
| |||
0 commit comments