Atomically increment and return the next LSN.
(&self)
| 21 | |
| 22 | /// Atomically increment and return the next LSN. |
| 23 | pub fn next(&self) -> Lsn { |
| 24 | Lsn::new(self.current.fetch_add(1, Ordering::Relaxed) + 1) |
| 25 | } |
| 26 | |
| 27 | /// Current value without incrementing (for snapshot watermarks). |
| 28 | pub fn current(&self) -> Lsn { |
no outgoing calls