Drops the `record_id` portion of the [`Lsn`] so we can fit an "abbreviation" of this [`Lsn`] into a [`u64`], without losing the total order.
(&self)
| 571 | /// Drops the `record_id` portion of the [`Lsn`] so we can fit an "abbreviation" |
| 572 | /// of this [`Lsn`] into a [`u64`], without losing the total order. |
| 573 | pub fn abbreviate(&self) -> u64 { |
| 574 | let mut abbreviated: u64 = 0; |
| 575 | |
| 576 | #[allow(clippy::as_conversions)] |
| 577 | { |
| 578 | abbreviated += (self.vlf_id as u64) << 32; |
| 579 | abbreviated += self.block_id as u64; |
| 580 | } |
| 581 | |
| 582 | abbreviated |
| 583 | } |
| 584 | } |
| 585 | |
| 586 | impl fmt::Display for Lsn { |