synapse
A component of the AienOS ecosystem.
Brought by drakestapleton
synapse / evidence / r1-raw-block-store / red-green / mutation-M8.txt
| 1 | mutation M8: exclusive lock not taken (review N4) |
| 2 | test: blockdev_tests::r1_a_second_opener_of_the_device_is_refused |
| 3 | @@ -203,7 +203,7 @@ |
| 4 | // One opener at a time: an exclusive advisory lock (flock) on the opened file, on |
| 5 | // top of O_EXCL for block devices. A second store on the same device would |
| 6 | // overwrite the first one's slots and metadata. |
| 7 | - match if lock { file.try_lock() } else { Ok(()) } { |
| 8 | + match Ok::<(), fs::TryLockError>(()) { |
| 9 | Ok(()) => {} |
| 10 | Err(fs::TryLockError::WouldBlock) => { |
| 11 | return Err(refuse(format!( |
| 12 | --- |
| 13 | test blockdev_tests::r1_a_second_opener_of_the_device_is_refused ... FAILED |
| 14 | thread 'blockdev_tests::r1_a_second_opener_of_the_device_is_refused' (2403141) panicked at crates/synapse-store/src/blockdev_tests.rs:869:39: |
| 15 | test result: FAILED. 0 passed; 1 failed; 0 ignored; 0 measured; 114 filtered out; finished in 0.01s |