Begin an immediately durable pristine write after the common lock. Repository-scoped operations use this stage when no physical working-copy or final shelf/deferred-tree resource participates in the mutation.
(
&self,
)
| 366 | /// Repository-scoped operations use this stage when no physical working-copy |
| 367 | /// or final shelf/deferred-tree resource participates in the mutation. |
| 368 | pub(super) fn begin_write_immediate( |
| 369 | &self, |
| 370 | ) -> Result<CommonPristineWriteTxn<'_>, RepositoryError> { |
| 371 | let txn = self |
| 372 | .pristine |
| 373 | .write_txn_immediate() |
| 374 | .map_err(|error| RepositoryError::Database(error.to_string()))?; |
| 375 | Ok(CommonPristineWriteTxn { txn, _common: self }) |
| 376 | } |
| 377 | |
| 378 | /// Advance from the common lock to one working-copy lock without blocking. |
| 379 | pub(super) fn try_lock_working_copy( |