interplane.Get Omega
Read in your language

synapse

A component of the AienOS ecosystem.

Brought by drakestapleton

branch main Branches Tags History

synapse / evidence / r1-raw-block-store / red-green / mutation-M8.txt

15 lines · 924 bytes Raw Blame History
1mutation M8: exclusive lock not taken (review N4)
2test: 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---
13test blockdev_tests::r1_a_second_opener_of_the_device_is_refused ... FAILED
14thread 'blockdev_tests::r1_a_second_opener_of_the_device_is_refused' (2403141) panicked at crates/synapse-store/src/blockdev_tests.rs:869:39:
15test result: FAILED. 0 passed; 1 failed; 0 ignored; 0 measured; 114 filtered out; finished in 0.01s