Rename open_with_access_type() to open_with_options() (#22123)

This commit is contained in:
Yueh-Hsuan Chiang
2022-01-07 12:11:43 -08:00
committed by GitHub
parent b11d3b5abf
commit 5771c36d3f
6 changed files with 10 additions and 11 deletions

View File

@ -8,6 +8,7 @@ mod tests {
solana_core::ledger_cleanup_service::LedgerCleanupService,
solana_ledger::{
blockstore::{make_many_slot_shreds, Blockstore},
blockstore_db::BlockstoreOptions,
get_tmp_ledger_path,
},
solana_measure::measure::Measure,
@ -283,7 +284,8 @@ mod tests {
solana_logger::setup_with("error,ledger_cleanup::tests=info");
let ledger_path = get_tmp_ledger_path!();
let mut blockstore = Blockstore::open(&ledger_path).unwrap();
let mut blockstore =
Blockstore::open_with_options(&ledger_path, BlockstoreOptions::default()).unwrap();
let config = get_benchmark_config();
if config.no_compaction {
blockstore.set_no_compaction(true);