(LedgerStore/FIFO) Refactor FIFO options and sanity check. (#23131)
This commit is contained in:
committed by
GitHub
parent
70ebab2c82
commit
8c872e9ce0
@ -9,7 +9,7 @@ mod tests {
|
||||
solana_core::ledger_cleanup_service::LedgerCleanupService,
|
||||
solana_ledger::{
|
||||
blockstore::{make_many_slot_shreds, Blockstore},
|
||||
blockstore_db::{BlockstoreOptions, ShredStorageType},
|
||||
blockstore_db::{BlockstoreOptions, BlockstoreRocksFifoOptions, ShredStorageType},
|
||||
get_tmp_ledger_path,
|
||||
},
|
||||
solana_measure::measure::Measure,
|
||||
@ -348,8 +348,10 @@ mod tests {
|
||||
&ledger_path,
|
||||
if config.fifo_compaction {
|
||||
BlockstoreOptions {
|
||||
shred_storage_type: ShredStorageType::RocksFifo,
|
||||
shred_data_cf_size: config.shred_data_cf_size,
|
||||
shred_storage_type: ShredStorageType::RocksFifo(BlockstoreRocksFifoOptions {
|
||||
shred_data_cf_size: config.shred_data_cf_size,
|
||||
..BlockstoreRocksFifoOptions::default()
|
||||
}),
|
||||
..BlockstoreOptions::default()
|
||||
}
|
||||
} else {
|
||||
|
Reference in New Issue
Block a user