solana/runtime/src
Xiang Zhu e74bc4e2e7
Add a filter_by_type param for purge_old_bank_snapshots (#31191)
* Add a type_select param for purge_old_bank_snapshots

* Use flags to make the function calls more readable

* Remove the extra purge calls

* replace select_type with filter_by_type

* Add test

* Use matches

* Fix CI test on reference

* use match and call do_purge once

* Let bank_snapshots_dir be TempDir

* remove account_paths in the test

* replace bank with _bank

* Remove create_snapshot_dirs_for_tests, will take the lastest from master

* Fix merge errors
2023-04-17 16:16:41 -07:00
..
account_storage Abstract out StoredAccountMeta as an Enum (#30478) 2023-03-09 15:52:51 -08:00
accounts_background_service
accounts_db Abstract out StoredAccountMeta as an Enum (#30478) 2023-03-09 15:52:51 -08:00
append_vec
bank Move rent debit out of bank (#31204) 2023-04-14 19:41:10 +00:00
epoch_accounts_hash
serde_snapshot Enforce a minimum of 1 on full and incremental snapshot retention (#30968) 2023-03-30 10:16:36 -05:00
snapshot_package Uses a channel for AHV -> SPS (#30406) 2023-02-22 03:36:29 +00:00
snapshot_utils Construct bank from snapshot dir (#30171) 2023-03-22 13:49:23 -07:00
account_info.rs Move alignment related consts from append_vec.rs to accounts_file.rs (#30782) 2023-03-20 11:34:18 -07:00
account_overrides.rs
account_rent_state.rs
account_storage.rs minor cleanup (#30477) 2023-02-23 15:10:09 -08:00
accounts.rs Move rent debit out of bank (#31204) 2023-04-14 19:41:10 +00:00
accounts_background_service.rs Add a filter_by_type param for purge_old_bank_snapshots (#31191) 2023-04-17 16:16:41 -07:00
accounts_cache.rs
accounts_db.rs ancient append vecs: better application of offset (#31208) 2023-04-17 06:50:32 -07:00
accounts_file.rs Move alignment related consts from append_vec.rs to accounts_file.rs (#30782) 2023-03-20 11:34:18 -07:00
accounts_hash.rs Makes AccountsHash an enum (#30416) 2023-02-21 15:20:51 -05:00
accounts_index.rs disk index: batch insert (#31094) 2023-04-10 11:08:54 -07:00
accounts_index_storage.rs add DiskIndexValue trait for disk index (#30503) 2023-02-24 11:02:06 -08:00
accounts_update_notifier_interface.rs Move account-meta structs from append_vec.rs to account_meta.rs (#30443) 2023-02-22 16:10:34 -08:00
active_stats.rs
ancestors.rs
ancient_append_vecs.rs packed ancient: add revisit_accounts_with_many_refs (#31209) 2023-04-17 13:52:26 -07:00
append_vec.rs Move alignment related consts from append_vec.rs to accounts_file.rs (#30782) 2023-03-20 11:34:18 -07:00
bank.rs Move rent debit out of bank (#31204) 2023-04-14 19:41:10 +00:00
bank_client.rs Relax `Sized` bound for `Signers` in `Transaction` and `Client` (#30568) 2023-03-30 13:12:48 +00:00
bank_creation_freezing_progress.rs improve BankCreationFreezingProgress and add tests (#30513) 2023-02-27 07:54:08 -08:00
bank_forks.rs Refactor squash timing report (#31041) 2023-04-05 08:53:49 -05:00
bank_utils.rs
block_cost_limits.rs Link needs updating (#30688) 2023-03-13 17:33:22 +01:00
blockhash_queue.rs
bucket_map_holder.rs add DiskIndexValue trait for disk index (#30503) 2023-02-24 11:02:06 -08:00
bucket_map_holder_stats.rs disk index: add stat: disk_index_failed_resizes (#31039) 2023-04-04 09:39:06 -07:00
builtins.rs Revert "add default_cost as mandatory field for Builtin (#30639)" (#30749) 2023-03-16 11:21:06 -05:00
cache_hash_data.rs
cache_hash_data_stats.rs
commitment.rs
contains.rs
cost_model.rs add compute budget instruction to set loaded accounts data size limit (#30377) 2023-02-24 09:27:49 -06:00
cost_tracker.rs implement From trait for CostTrackerError to TransactionError (#30267) 2023-02-13 11:06:39 -06:00
epoch_accounts_hash.rs
epoch_stakes.rs
genesis_utils.rs
hardened_unpack.rs Account path add run parent with old path cleanup (#29942) 2023-01-30 10:26:43 -08:00
in_mem_accounts_index.rs disk index: batch insert (#31094) 2023-04-10 11:08:54 -07:00
inline_spl_associated_token_account.rs
inline_spl_token.rs
inline_spl_token_2022.rs
lib.rs Move rent debit out of bank (#31204) 2023-04-14 19:41:10 +00:00
loader_utils.rs
message_processor.rs Cleanup - mock_process_instruction() (#31088) 2023-04-07 12:53:19 +02:00
non_circulating_supply.rs
nonce_keyed_account.rs Cleanup - mock InvokeContext (#31007) 2023-04-03 17:23:24 +02:00
prioritization_fee.rs report less datapoints to block_min_prioritization_fee (#30017) 2023-02-01 11:32:36 -06:00
prioritization_fee_cache.rs Standardize Thread Naming - Prioritization Fee Cache (#30890) 2023-03-24 13:48:55 -07:00
pubkey_bins.rs deprecates Pubkey::new in favor of Pubkey::{,try_}from (#29805) 2023-01-21 18:06:27 +00:00
read_only_accounts_cache.rs
rent_collector.rs
rent_debits.rs Move rent debit out of bank (#31204) 2023-04-14 19:41:10 +00:00
rent_paying_accounts_by_partition.rs deprecates Pubkey::new in favor of Pubkey::{,try_}from (#29805) 2023-01-21 18:06:27 +00:00
rolling_bit_field.rs
root_bank_cache.rs RootBankCache: only cache weak reference to avoid keeping a bank alive (#31189) 2023-04-14 11:33:18 -07:00
runtime_config.rs
secondary_index.rs Add an RPC API that can query the list of Top N secondary index keys and their sizes (#28887) 2023-01-31 13:47:03 -07:00
serde_snapshot.rs Construct bank from snapshot dir (#30171) 2023-03-22 13:49:23 -07:00
shared_buffer_reader.rs
snapshot_archive_info.rs
snapshot_config.rs Enforce a minimum of 1 on full and incremental snapshot retention (#30968) 2023-03-30 10:16:36 -05:00
snapshot_hash.rs Refactors the Full/Incremental SnapshotHash types (#31186) 2023-04-13 18:01:27 -04:00
snapshot_minimizer.rs Removes unused `ancestors` param from `get_snapshot_storages` (#30773) 2023-03-18 17:17:41 -04:00
snapshot_package.rs Uses a channel for AHV -> SPS (#30406) 2023-02-22 03:36:29 +00:00
snapshot_utils.rs Add a filter_by_type param for purge_old_bank_snapshots (#31191) 2023-04-17 16:16:41 -07:00
sorted_storages.rs Abstract out AppendVec into AccountsFile enum (#29815) 2023-02-15 17:24:04 -08:00
stake_account.rs drop default from PhantomData::default() (#30476) 2023-02-23 14:59:08 -08:00
stake_history.rs
stake_weighted_timestamp.rs
stakes.rs add test_stake_account_consistency_with_rent_epoch_max_feature (#29915) 2023-01-27 11:50:33 -08:00
static_ids.rs
status_cache.rs
storable_accounts.rs Abstract out StoredAccountMeta as an Enum (#30478) 2023-03-09 15:52:51 -08:00
system_instruction_processor.rs Cleanup - mock_process_instruction() (#31088) 2023-04-07 12:53:19 +02:00
transaction_batch.rs
transaction_error_metrics.rs Limit loaded data per transaction to a fixed cap (#29743) 2023-01-31 22:51:35 -06:00
transaction_priority_details.rs add compute budget instruction to set loaded accounts data size limit (#30377) 2023-02-24 09:27:49 -06:00
verify_accounts_hash_in_background.rs Includes error in panic in initial accounts hash verification (#30725) 2023-03-15 12:24:55 -04:00
vote_account.rs
vote_parser.rs refactor to remove additional is_simple_vote check (#30521) 2023-02-24 23:49:04 -06:00
vote_sender_types.rs
vote_transaction.rs
waitable_condvar.rs