Skip to main content

first_unstable_offset

Function first_unstable_offset 

Source
pub fn first_unstable_offset(starts: &[i64], log_end: i64) -> Option<i64>
Expand description

Select the first unstable transaction offset, or the log end when no transaction is open. A pending start beyond the log end is rejected.

Some and None partition the inputs: the result is Some exactly when every start is at or below the log end.