Return `max_id + 1`, or error if the ID space is exhausted.
(max_id: u64)
| 49 | |
| 50 | /// Return `max_id + 1`, or error if the ID space is exhausted. |
| 51 | fn next_id(max_id: u64) -> PristineResult<u64> { |
| 52 | max_id.checked_add(1).ok_or(PristineError::IdSpaceExhausted) |
| 53 | } |
| 54 | |
| 55 | fn collect_required_repository_capabilities( |
| 56 | read_txn: &ReadTransaction, |