MCPcopy Create free account
hub / github.com/atomicdotdev/atomic / try_lock_range

Method try_lock_range

atomic-core/src/pristine/txn/pristine/snapshot.rs:45–47  ·  view source on GitHub ↗

Since redb 4.3, FileBackend::new does not acquire the database lock. Forward the complete locking contract: the trait defaults report Unsupported and allow an exclusive-writer database to open unlocked.

(&self, start: Bound<u64>, end: Bound<u64>)

Source from the content-addressed store, hash-verified

43 // Forward the complete locking contract: the trait defaults report
44 // Unsupported and allow an exclusive-writer database to open unlocked.
45 fn try_lock_range(&self, start: Bound<u64>, end: Bound<u64>) -> Result<bool, BackendError> {
46 self.0.try_lock_range(start, end)
47 }
48
49 fn try_lock_shared_range(
50 &self,

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected