Skip to main content

BalIndexSetter

Type Alias BalIndexSetter 

Source
pub(crate) type BalIndexSetter<DB> = fn(&mut DB, u64);
Expand description

Function pointer that overwrites the BAL index in the DB.

Used in BbBlockExecutor::initialize to map a worker’s incoming bal_index = i + 1 (the standard “tx i + 1” convention from execute_block_in_pool) onto the renumbered space i + 1 + 2k, where k is the segment index containing tx i. Renumbering reserves two extra bal_indexes per segment boundary (one for each segment’s post-execution and one for the next segment’s pre-execution), so workers’ strict less-than reads can see those boundary writes.

Layout§

Note: Most layout information is completely unstable and may even differ between compilations. The only exception is types with certain repr(...) attributes. Please see the Rust Reference's “Type Layout” chapter for details on type layout guarantees.

Size: 8 bytes