Skip to main content

decide_conflict_retry

Function decide_conflict_retry 

Source
pub fn decide_conflict_retry(
    bucket: &JitBucket,
    view_meta: &ViewMetadata,
    refetched: &[PartitionFreshnessRow],
) -> Result<ConflictRetry, Error>
Expand description

Decides what to do with a bucket whose write hit the no-overlap constraint, from the rows fetched again afterwards. A concurrent writer that committed after the first retire SELECT is listed in refetched, so the retry’s retire mode is derived from it.