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,
)
| 391 | /// Repository-scoped operations use this stage when no physical working-copy |
| 392 | /// or final shelf/deferred-tree resource participates in the mutation. |
| 393 | pub(super) fn begin_write_immediate( |
| 394 | &self, |
| 395 | ) -> Result<CommonPristineWriteTxn<'_>, RepositoryError> { |
| 396 | let txn = self |
| 397 | .pristine |
| 398 | .write_txn_immediate() |
| 399 | .map_err(|error| RepositoryError::Database(error.to_string()))?; |
| 400 | Ok(CommonPristineWriteTxn { txn, _common: self }) |
| 401 | } |
| 402 | |
| 403 | /// Advance from the common lock to one working-copy lock without blocking. |
| 404 | pub(super) fn try_lock_working_copy( |