(LedgerStore) Rename BlockstoreAdvancedOptions to LedgerColumnOptions (#23764)
This PR renames BlockstoreAdvancedOptions to LedgerColumnOptions, as we will pass-down this struct to LedgerColumn to allow it to perform metric reporting.
This commit is contained in:
committed by
GitHub
parent
56428be629
commit
f999eef452
@ -38,7 +38,7 @@ use {
|
||||
blockstore::{
|
||||
Blockstore, BlockstoreError, BlockstoreSignals, CompletedSlotsReceiver, PurgeType,
|
||||
},
|
||||
blockstore_db::{BlockstoreAdvancedOptions, BlockstoreOptions, BlockstoreRecoveryMode},
|
||||
blockstore_db::{BlockstoreOptions, BlockstoreRecoveryMode, LedgerColumnOptions},
|
||||
blockstore_processor::{self, TransactionStatusSender},
|
||||
leader_schedule::FixedSchedule,
|
||||
leader_schedule_cache::LeaderScheduleCache,
|
||||
@ -168,7 +168,7 @@ pub struct ValidatorConfig {
|
||||
pub no_wait_for_vote_to_start_leader: bool,
|
||||
pub accounts_shrink_ratio: AccountShrinkThreshold,
|
||||
pub wait_to_vote_slot: Option<Slot>,
|
||||
pub blockstore_advanced_options: BlockstoreAdvancedOptions,
|
||||
pub ledger_column_options: LedgerColumnOptions,
|
||||
}
|
||||
|
||||
impl Default for ValidatorConfig {
|
||||
@ -230,7 +230,7 @@ impl Default for ValidatorConfig {
|
||||
accounts_shrink_ratio: AccountShrinkThreshold::default(),
|
||||
accounts_db_config: None,
|
||||
wait_to_vote_slot: None,
|
||||
blockstore_advanced_options: BlockstoreAdvancedOptions::default(),
|
||||
ledger_column_options: LedgerColumnOptions::default(),
|
||||
}
|
||||
}
|
||||
}
|
||||
@ -1297,7 +1297,7 @@ fn load_blockstore(
|
||||
ledger_path,
|
||||
BlockstoreOptions {
|
||||
recovery_mode: config.wal_recovery_mode.clone(),
|
||||
advanced_options: config.blockstore_advanced_options.clone(),
|
||||
column_options: config.ledger_column_options.clone(),
|
||||
..BlockstoreOptions::default()
|
||||
},
|
||||
)
|
||||
|
@ -10,7 +10,7 @@ mod tests {
|
||||
solana_ledger::{
|
||||
blockstore::{make_many_slot_shreds, Blockstore},
|
||||
blockstore_db::{
|
||||
BlockstoreAdvancedOptions, BlockstoreOptions, BlockstoreRocksFifoOptions,
|
||||
BlockstoreOptions, BlockstoreRocksFifoOptions, LedgerColumnOptions,
|
||||
ShredStorageType,
|
||||
},
|
||||
get_tmp_ledger_path,
|
||||
@ -351,7 +351,7 @@ mod tests {
|
||||
&ledger_path,
|
||||
if config.fifo_compaction {
|
||||
BlockstoreOptions {
|
||||
advanced_options: BlockstoreAdvancedOptions {
|
||||
column_options: LedgerColumnOptions {
|
||||
shred_storage_type: ShredStorageType::RocksFifo(
|
||||
BlockstoreRocksFifoOptions {
|
||||
shred_data_cf_size: config.shred_data_cf_size,
|
||||
|
Reference in New Issue
Block a user