(&self)
| 451 | /// as operation-level contention control. |
| 452 | #[cfg(test)] |
| 453 | pub(super) fn begin_write(&self) -> Result<OrderedPristineWriteTxn<'_>, RepositoryError> { |
| 454 | let txn = self |
| 455 | .common |
| 456 | .pristine |
| 457 | .write_txn() |
| 458 | .map_err(|error| RepositoryError::Database(error.to_string()))?; |
| 459 | Ok(OrderedPristineWriteTxn { |
| 460 | txn, |
| 461 | operation: self, |
| 462 | }) |
| 463 | } |
| 464 | |
| 465 | /// Begin an immediately durable pristine write after both operation locks. |
| 466 | /// |