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

@@ -1723,7 +1723,6 @@ fn main() {
&output_directory,
&genesis_config,
solana_runtime::hardened_unpack::MAX_GENESIS_ARCHIVE_UNPACKED_SIZE,
AccessType::PrimaryOnly,
BlockstoreAdvancedOptions::default(),
)
.unwrap_or_else(|err| {