solana_accounts_db::accounts_partition

Function get_partition_end_indexes

source
pub fn get_partition_end_indexes(partition: &Partition) -> Vec<PartitionIndex>
Expand description

return all end partition indexes for the given partition partition could be (0, 1, N). In this case we only return [1] the single ‘end_index’ that covers this partition. partition could be (0, 2, N). In this case, we return [1, 2], which are all the ‘end_index’ values contained in that range. (0, 0, N) returns [0] as a special case. There is a relationship between

  1. ‘pubkey_range_from_partition’
  2. ‘partition_from_pubkey’
  3. this function