Remove AccessType arg from create_new_ledger (#23591)

Creating a new ledger implicitly means that no other process could have
previously held access to it. Additionally, creating a new ledger
implicitly requires writing, so it follows that Primary access is
required and we can drop access type as an argument.
This commit is contained in:
steviez
2022-03-15 00:07:16 -05:00
committed by GitHub
parent c1bf85b109
commit e7cf84a593
4 changed files with 4 additions and 21 deletions

View File

@ -582,7 +582,6 @@ impl TestValidator {
config
.max_genesis_archive_unpacked_size
.unwrap_or(MAX_GENESIS_ARCHIVE_UNPACKED_SIZE),
solana_ledger::blockstore_db::AccessType::PrimaryOnly,
BlockstoreAdvancedOptions::default(),
)
.map_err(|err| {