(LedgerStore) Use different path for different blockstore storage type. (#23236)
#### Summary of Changes To avoid mixing the use of different shred storage types, each shred storage type will have its blockstore in a different directory. This PR still keeps the RocksFifo setting hidden. The default ShredStorageType and blockstore directory are still RocksLevel and `rocksdb`. Will follow-up with PRs on making FIFO option public in ledger-tool and validator. #### Test Plan * Added a new test to verify the existence of `rocksdb-fifo` directory when FIFO compaction is used. * Updated existing test to verify the current setting still store ledger under `rocksdb` directory. * Manually ran ledger_cleanup_test with both level and fifo compaction and verified the resulting ledger. * Ran a validator with this PR.
This commit is contained in:
committed by
GitHub
parent
39387e8446
commit
634f4eb37d
@ -12,7 +12,9 @@ use {
|
||||
gossip_service::discover_cluster,
|
||||
socketaddr,
|
||||
},
|
||||
solana_ledger::{blockstore::create_new_ledger, create_new_tmp_ledger},
|
||||
solana_ledger::{
|
||||
blockstore::create_new_ledger, blockstore_db::ShredStorageType, create_new_tmp_ledger,
|
||||
},
|
||||
solana_net_utils::PortRange,
|
||||
solana_rpc::{rpc::JsonRpcConfig, rpc_pubsub_service::PubSubConfig},
|
||||
solana_runtime::{
|
||||
@ -580,6 +582,7 @@ impl TestValidator {
|
||||
.max_genesis_archive_unpacked_size
|
||||
.unwrap_or(MAX_GENESIS_ARCHIVE_UNPACKED_SIZE),
|
||||
solana_ledger::blockstore_db::AccessType::PrimaryOnly,
|
||||
ShredStorageType::default(),
|
||||
)
|
||||
.map_err(|err| {
|
||||
format!(
|
||||
|
Reference in New Issue
Block a user